I want to check the files in a bare git repo (i.e. the files that are normally in .git) but only if garbage collection is not in progress. I've tried checking for gc.pid but that seems to be left behind after gc has finished, so doesn't reliably show whether gc is still in progress.
Asked
Active
Viewed 391 times
1 Answers
0
From here, it seems a git gc
done while one is currently running would trigger
fatal: gc is already running on machine 'machinename' pid xxx
But in your case, disabling git gc
in the background (as I explained before) might be an option.

VonC
- 1,262,500
- 529
- 4,410
- 5,250