The test's own `git -C "$TEMP_REPO" init` silently re-targets an inherited GIT_DIR instead of creating a repo in the temp dir when this test itself runs inside a git hook (e.g. pre-push sets GIT_DIR to the invoking repo's gitdir). Unset all GIT_* vars at the top of the script so the temp repo fixture is actually isolated regardless of the calling context. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FNJWdVvdgvZCHi1hZGqgVQ
5.2 KiB
Executable File
5.2 KiB
Executable File