Skip to content

tools: make the pre-commit hook executable so it actually runs - #92

Closed
oguska wants to merge 1 commit into
pablogonz12:mainfrom
oguska:tools/pre-commit-exec
Closed

oguska wants to merge 1 commit into
pablogonz12:mainfrom
oguska:tools/pre-commit-exec

Conversation

@oguska

@oguska oguska commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

What changes. .githooks/pre-commit is committed 100644. Git skips a non-executable hook in silence (with only an advisory hint), so the asset policy was never enforced on commit on any clone, whatever core.hooksPath says. This commit sets the mode bit to 100755; cargo xtask install-hooks only sets the path and nothing restores the bit.

Evidence. git ls-files -s .githooks/pre-commit before: 100644, after: 100755. With the bit set, the hook runs on commit and cargo xtask policy passes (asset policy: 198 files ok).

The hook is committed 100644, and git skips a non-executable hook in
silence: the asset policy was never enforced on commit, whatever
core.hooksPath says. install-hooks only sets the path, so nothing
restores the bit.
@pablogonz12

Copy link
Copy Markdown
Owner

Ported onto the unified core as #114 (mode change only); branch kept.

pablogonz12 added a commit that referenced this pull request Nov 25, 2026
tools: make the pre-commit hook executable so it actually runs (from #92)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants