Cargo should not run git gc manually #8195
Labels
A-git
Area: anything dealing with git
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Saw this on twitter:
https://twitter.com/indygreg/status/1256656752944111616
and it turns out
a) cargo is checking how many packs there are on its own
b) if there are too many, it runs git gc, which is blocking.
There is a git command to do both of that automatically, with b) being done in the background, not blocking anything else:
git gc --auto
. Themaybe_gc_repo
function should just call that unconditionally. This also has the advantage of respecting the various gc.* git config items, instead of a manual __CARGO_PACKFILE_LIMIT.The text was updated successfully, but these errors were encountered: