Files
VIctory-xmem/.githooks/pre-commit
Luxuride 4b4576feb7 fix(hooks): make the pre-commit policy hook executable
git refuses to run a hook without an executable bit: it prints one advice
hint and runs the commit anyway. The file is stored as 100644, so in every
clone the asset-policy gate that 'cargo xtask install-hooks' advertises never
runs, silently.

Every other shell entry point in the tree is 100755; this is the only one.
2026-12-04 03:41:11 +01:00

4 lines
128 B
Bash
Executable File

#!/bin/sh
# Enforces the asset policy on every commit. Install with: cargo xtask install-hooks
exec cargo xtask policy --staged