feat: git-leak-guard pre-commit hook + smoke coverage
Pending local work, committed so it ships with the thin-session update. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
075e8b0878
commit
bc3696bb38
@@ -176,5 +176,10 @@ if [ -x "$HERE/smoke/bash-guard.test.sh" ]; then
|
||||
chk "bash-guard 11 кейсов" "'$HERE/smoke/bash-guard.test.sh' >/dev/null 2>&1"
|
||||
else echo " · bash-guard.test.sh нет (skip)"; fi
|
||||
|
||||
echo "[guard] git-leak-guard: ключ в staged=блок коммита, чисто=пропуск"
|
||||
if [ -x "$HERE/smoke/git-leak-guard.test.sh" ]; then
|
||||
chk "git-leak-guard 5 кейсов" "'$HERE/smoke/git-leak-guard.test.sh' >/dev/null 2>&1"
|
||||
else echo " · git-leak-guard.test.sh нет (skip)"; fi
|
||||
|
||||
[ "$fail" = 0 ] && echo "SMOKE OK" || echo "SMOKE FAIL"
|
||||
exit "$fail"
|
||||
|
||||
Reference in New Issue
Block a user