The pre-commit hook is executable #408
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/408"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from readmet3xt-lab/foxhound. Originally posted by ColorMeBoom on 2026-12-01T22:53:15Z.
.githooks/pre-commitwas stored as mode 100644. Git runs a hook only when its file is executable, so on Linux and macOScargo xtask install-hookssetscore.hooksPathbut every commit skips the asset-policy check. The only sign is a hint:This PR only changes the file's mode to 100755. The content is the same, and Windows is unaffected.
Tested on Linux (git, CachyOS):
data.bin. The commit went through and the hook never ran.POLICY: data.bin: file type not on the allowlist, and normal commits pass (asset policy: 1 files ok).🤖 Generated with Claude Code
Pull request closed