Sweep 19 Sep 2026 · 02:36Z Build v2.1.278 500 read Stable v2.1.267 Latest v2.1.278 Next v2.1.278 Feeds RSS JSON llms.txt Unofficial
Claude Code v2.1.269 ·

Git auto-maintenance flags for Claude-invoked git commands

Claude Code now disables git's automatic gc/maintenance for most git commands it runs, but not for BYOC fetch retries

TierYou'll noticehow much it should matter to you
Useful2my rating, 1 to 5
Signal1worth watching, 1 to 5
AreaGit Internalswhat it touches
KindImprovementsin v2.1.269,
Group of 2 You'll notice No documentation found

Claude Code now disables git's automatic gc/maintenance for most git commands it runs, but not for BYOC fetch retries

What

  • When Claude shells out to git, the command now appends -c gc.auto=0 -c maintenance.auto=false alongside its existing default config and command-line flags, disabling git's automatic garbage collection and maintenance for those invocations.
  • The retry-loop git invocation used for bring-your-own-cloud (BYOC) git fetches no longer passes those two overrides; it only spreads its other arguments. The general internal git command builder still sets them.

Why This avoids Claude-invoked git commands unexpectedly triggering background garbage collection or maintenance, while leaving BYOC fetch retries on git's normal auto-maintenance behavior.

See this entry in the whole of v2.1.269 →