Skip to content

Commit 0b931dd

Browse files
committed
chore: repoint eyrie submodule after history rewrite and harden hooks
Strip Co-authored-by from rewritten hawk history; sync external/eyrie to eyrie main 2f5efc2, add prepare-commit-msg lefthook strip, gitignore .githooks/.
1 parent 29882e8 commit 0b931dd

3 files changed

Lines changed: 13 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,6 @@ hawk
2525

2626
# Test artifacts
2727
coverage.out
28+
29+
# Lefthook-generated git hook wrappers
30+
.githooks/

lefthook.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,12 @@ commit-msg:
130130
# Strip Co-authored-by: trailers that AI tools (Claude, Cursor, etc.) add.
131131
# This enforces the rule that commits list only the human author.
132132
sed '/^[Cc]o-[Aa]uthored-[Bb]y:/d' "{1}" > "{1}.tmp" && mv "{1}.tmp" "{1}"
133+
134+
# ---------------------------------------------------------------------------
135+
# prepare-commit-msg — strip AI co-author trailers after tools inject them.
136+
# ---------------------------------------------------------------------------
137+
prepare-commit-msg:
138+
commands:
139+
strip-co-authored-by:
140+
run: |
141+
sed '/^[Cc]o-[Aa]uthored-[Bb]y:/d' "{1}" > "{1}.tmp" && mv "{1}.tmp" "{1}"

0 commit comments

Comments
 (0)