Git gc does not remove garbage files #5191
Labels
Potential Project
This issue can be used as a development Project for those loooking for a nice challenge
up for grabs
Setup
Details
What commands did you run to trigger this issue?
$ git gc
if there's another git process running, it may ask:
select n
$ git count-objects -v
will display:This is expected, but if you terminate the other git process and run gc again, it won't remove .pack that corresponds to the missing index. The only way to get rid of it is to recreate the index (index-pack) before the next gc
What did you expect to occur after running these commands?
OR
What actually happened instead?
.idx was removed and orphaned .pack, which will be ignored in subsequent gc
The text was updated successfully, but these errors were encountered: