Thread (5 messages) 5 messages, 3 authors, 2024-12-28

Re: git gc does not clean tmp_pack* files

From: Jeff King <hidden>
Date: 2024-12-28 19:44:30

On Fri, Dec 20, 2024 at 05:17:50PM -0800, Boomman wrote:
For me, two "git gc" on a same repo fail to run:
fatal: gc is already running on machine 'WIN-blah' pid 40304 (use
--force if not)

If you're already colliding on this, then I don't see why you can't
use a normal looking name without a randomized string like
"tmp_garbagecollecting", so that each execution would at least
overwrite the same location. In this case --force could append _1
probably.
git-gc is not the only thing that writes packs. There might be
simultaneous packs written by incoming pushes or fetches, for example.

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help