Dev setup: correct the hook claim, ship an opt-in committed hook
The naming check was documented as an auto-running pre-commit hook, but .git/hooks is never cloned and no installer existed - a fresh clone had nothing, and the real enforcement is CI. Say that plainly. Ship .githooks/pre-commit (LF-pinned) so a dev who wants the local check can opt in with 'git config core.hooksPath .githooks'; CI stays the backstop that fails the build on a bad name.
This commit is contained in:
5
.githooks/pre-commit
Executable file
5
.githooks/pre-commit
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
# Committed pre-commit hook. Activate per clone with:
|
||||
# git config core.hooksPath .githooks
|
||||
# Runs the naming/style gate; blocks the commit on failure.
|
||||
exec bash "$(git rev-parse --show-toplevel)/scripts/check-naming-and-style.sh"
|
||||
Reference in New Issue
Block a user