Allow Sam attribution in pre-commit hook

---
Build: pass | Tests: FAIL — 1 failed
This commit is contained in:
Sam & Claude 2026-05-27 02:46:39 +02:00
parent d36ca67ada
commit 20cf0334d7

View file

@ -35,9 +35,9 @@ guard_ident() {
role=$1
name=$2
case "$name" in
"Operator & "*|"Clawdie AI") ;;
"Operator & "*|"Sam & "*|"Clawdie AI") ;;
*)
echo "pre-commit: $role name is '$name' — expected 'Operator & <agent>'." >&2
echo "pre-commit: $role name is '$name' — expected 'Operator & <agent>' or 'Sam & <agent>'." >&2
echo " Fix: use a per-agent worktree with" >&2
echo " git config --worktree user.name \"Operator & <agent>\"" >&2
echo " Or export GIT_AUTHOR_NAME and GIT_COMMITTER_NAME for this shell." >&2