Update AGENTS.md git -C trap row after hardening #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "docs-git-c-trap-fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Commit
69fef62closed the git -C bypass in the git hooks but left theAGENTS.md "stale terms and doc traps" table still stating that
git -C <path> <verb>slips past them. That is now false and couldmislead an agent into thinking the guard can be evaded with
-C.Rewrite the row's current-reality cell: the hooks normalize git's
global options (
-C,-c,--git-dir,--work-tree), so the-Cform is matched like the bare command. This is the docs-with-behavior
follow-up the hardening commit should have carried.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com