diff --git a/hooks/pre-commit b/hooks/pre-commit index 96f857b..3257753 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -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 & '." >&2 + echo "pre-commit: $role name is '$name' — expected 'Operator & ' or 'Sam & '." >&2 echo " Fix: use a per-agent worktree with" >&2 echo " git config --worktree user.name \"Operator & \"" >&2 echo " Or export GIT_AUTHOR_NAME and GIT_COMMITTER_NAME for this shell." >&2