Skip to content

fix(repo): make the pre-commit hook executable - #8

Merged
mrcsin merged 1 commit into
masterfrom
fix-hook-exec
Oct 15, 2026
Merged

mrcsin merged 1 commit into
masterfrom
fix-hook-exec

Conversation

@mrcsin

@mrcsin mrcsin commented Oct 15, 2026

Copy link
Copy Markdown
Owner

Problem

scripts/git-hooks/pre-commit was committed with mode 100644. Git skips a hook without the executable bit and prints hint: The 'scripts/git-hooks/pre-commit' hook was ignored because it's not set as executable, so the branch guard and scripts/format.sh never ran on commit in any clone.

What changed

The file mode is 100755. The content is unchanged.

Verification

  • git ls-files -s scripts/git-hooks/pre-commit shows 100755.
  • Running the hook directly on a feature branch exits 0.
  • The collapse commit on this branch ran without the "hook was ignored" hint.
Per-task commits before collapse
4d0d1d2 fix(repo): make the pre-commit hook executable

The hook was committed with mode 100644. Git skips a hook without the
executable bit, so the branch guard and scripts/format.sh never ran on
commit in any clone.
@mrcsin
mrcsin marked this pull request as ready for review October 15, 2026 12:00
@mrcsin
mrcsin merged commit 6fbf319 into master Oct 15, 2026
2 checks passed
@mrcsin
mrcsin deleted the fix-hook-exec branch October 15, 2026 12:06
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.

1 participant