gc.sh: partition repacking refs more robustly
commite275c6cac55d2313d28775406ec7e32327d4f169
authorKyle J. McKay <mackyle@gmail.com>
Mon, 27 Nov 2017 23:14:13 +0000 (27 15:14 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Mon, 27 Nov 2017 23:14:13 +0000 (27 15:14 -0800)
treed46305be80271936a44a3da2f60e47136f506a5e
parentabeb7dc857266e23b9533b2aaddcb7b32182fbf1
gc.sh: partition repacking refs more robustly

Move the location of any potentially updated-during-repacking refs
to a completely distinct refs namespace so that there's absolutely
no possibility of a collision.

The possibility of a collision before was very remote and then if
the stars aligned the worst that could have happened was that one
or more objects that should have been placed in the pack ended up
loose instead and perhaps the project's bundle failed to be created
as a result (it might not have been complete in that case).

There are no known occurrences of this happening in the wild, but
it's better to entirely eliminate the possibility just to be safe.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
jobd/gc.sh