Skip to content

Commit 771fc83

Browse files
committed
fix(git-hooks): add missing husky wrappers for commit-msg and pre-push
Added missing .husky/commit-msg and .husky/pre-push wrappers that call the canonical hooks in .git-hooks/. Updated .husky/pre-commit to call .git-hooks/pre-commit directly instead of the old .husky/security-checks.sh. This fixes the issue where AI attribution wasn't being stripped from commit messages because husky wasn't triggering the commit-msg hook. Hook flow: Git → .husky/_/commit-msg → .husky/commit-msg → .git-hooks/commit-msg The .git-hooks/ directory contains the canonical hook implementations that should be called by the husky wrappers.
1 parent d92b2d6 commit 771fc83

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

.husky/commit-msg

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Run commit message validation and auto-strip AI attribution.
2+
.git-hooks/commit-msg "$1"

.husky/pre-commit

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Run security checks first.
2-
.husky/security-checks.sh
2+
.git-hooks/pre-commit
33

44
if [ -z "${DISABLE_PRECOMMIT_LINT}" ]; then
55
pnpm lint --staged

.husky/pre-push

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Run pre-push security validation.
2+
.git-hooks/pre-push "$@"

0 commit comments

Comments
 (0)