test: pin git background gc off in isolated test env (COR-394)
main·
Commit

GitIsolatedEnv/IsolateGitConfigEnv now point git at a config that
disables gc.auto, gc.autoDetach, maintenance.auto, and
fetch.writeCommitGraph. A detached git gc/git maintenance process
could outlive a test while still holding .git/objects open, racing
t.TempDir()'s deferred RemoveAll and failing with "directory not empty".
Fixes flaky TestSafelyAdvanceLocalRef_DoesNotReplayDisconnectedChainWhenTargetIsShallow; applied centrally so other git-shelling strategy tests don't regress.
Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com Entire-Checkpoint: c57ad18d4e04
Checkpoints
Checkpoint 1