Pin Git Background GC Off in Test Environment
Claude Code·Opus 4.8[1m]·
toothbrush·3mo ago·3min·1 Checkpoint·1 file change·+15/-4·11K tokens

PR opened: https://github.com/entireio/cli/pull/1378
What it does: Pins git background gc/maintenance off in the isolated test env (GitIsolatedEnv/IsolateGitConfigEnv), so a detached git gc can't outlive a test holding .git/objects open and race t.TempDir() cleanup.
- Central fix — applied via the shared isolation config file, so every git-shelling strategy test benefits, not just the one flaking.
- Verified locally:
go test -run TestSafelyAdvanceLocalRef -count=50 -p 4→ green. - Tradeoff: didn't run
mise run lint/test:cilocally (you interrupted to push) — CI will catch fmt/lint. The change is a small string write in one helper, low risk.