git-svn gc: acquire a `gc.pid` lock for any packing activities
commitf59bb63746924d44aecc1a0c65902292736360c6
authorKyle J. McKay <mackyle@gmail.com>
Wed, 10 Jun 2020 19:18:11 +0000 (10 12:18 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Wed, 10 Jun 2020 19:18:11 +0000 (10 12:18 -0700)
tree7d13116657ee33132804a0263317b79415a2e9ff
parent8fa68a91e02708884d7fde6d1467b1edf9a5131c
git-svn gc: acquire a `gc.pid` lock for any packing activities

It really should not be possible for any kind of gc to run on
an svn mirror project while a clone/update operation is in progress.

It really shouldn't.

Nevertheless, do the right thing and acquire a `gc.pic` lock
for the duration of any packing operations.

Since, strictly speaking, no packing is actually required during
a clone or update of a `git-svn` mirror, failure to acquire
the lock only results in the packing operation being skipped
rather than an outright failure.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc-git-svn.sh
jobd/gc-util-functions.sh
taskd/clone.sh