The pre-commit hook is executable #408

Closed
ColorMeBoom wants to merge 0 commits from upstream-pr/408 into main
ColorMeBoom commented 2026-12-01 22:53:15 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by ColorMeBoom on 2026-12-01T22:53:15Z.


.githooks/pre-commit was stored as mode 100644. Git runs a hook only when its file is executable, so on Linux and macOS cargo xtask install-hooks sets core.hooksPath but every commit skips the asset-policy check. The only sign is a hint:

hint: The '.githooks/pre-commit' hook was ignored because it's not set as executable.

This PR only changes the file's mode to 100755. The content is the same, and Windows is unaffected.

Tested on Linux (git, CachyOS):

  • Before: with the file at 100644, I force-added a dummy data.bin. The commit went through and the hook never ran.
  • After: with the file at 100755, the same commit is rejected with POLICY: data.bin: file type not on the allowlist, and normal commits pass (asset policy: 1 files ok).

🤖 Generated with Claude Code

<!-- greyfinch-sync:readmet3xt-lab/foxhound:issue:5596103741 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/408). Originally posted by [ColorMeBoom](https://github.com/ColorMeBoom) on 2026-12-01T22:53:15Z. --- `.githooks/pre-commit` was stored as mode 100644. Git runs a hook only when its file is executable, so on Linux and macOS `cargo xtask install-hooks` sets `core.hooksPath` but every commit skips the asset-policy check. The only sign is a hint: ``` hint: The '.githooks/pre-commit' hook was ignored because it's not set as executable. ``` This PR only changes the file's mode to 100755. The content is the same, and Windows is unaffected. **Tested on Linux (git, CachyOS):** - **Before:** with the file at 100644, I force-added a dummy `data.bin`. The commit went through and the hook never ran. - **After:** with the file at 100755, the same commit is rejected with `POLICY: data.bin: file type not on the allowlist`, and normal commits pass (`asset policy: 1 files ok`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
readmet3xt-lab/foxhound!408
No description provided.