You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should set maintenance.auto = false instead of (or in addition to) gc.auto = 0 #2437
Git version 2.54.0 changed the default garbage collection strategy from "gc" to "geometric" (git/git@50d7425), so gc.auto no longer has any effect. The new configuration setting is maintenance.auto.
If you want to continue supporting runs inside containers with very old versions of git (looks like pre-2.30), you could continue setting gc.auto in addition to maintenance.auto.
Background
Recently we started running into a strange intermittent error in some of our workflows that do git checkout --deepen to get the merge-base of the PR for certain analysis.
fatal: shallow file has changed since we read it
It turns out that the automatic garbage collection spawned as a background process from one command was changing the shallow file after the subsequent git checkout --deepen had already started running. We didn't have this problem with 2.53 and earlier because of the gc.auto = 0 setting, but 2.54.0's change away from gc as the default garbage collection made that ineffective.
Reacted by Alexandre Barone, Elizabeth Craig and Andrey
Activity
fix: set maintenance.auto=false for git>=2.54 to prevent background G…
ci: disable automatic Git maintenance during checkout
ci: disable automatic Git maintenance during checkout
ci: disable automatic Git maintenance during checkout
ci: disable automatic Git maintenance during checkout
ci: disable automatic Git maintenance during checkout
ci: disable automatic Git maintenance during checkout
ci: disable automatic Git maintenance during checkout
fix(ci): scope Git maintenance during dependency downloads (#103)
Fixture origins run no background git maintenance (larry#138) (#139)