refdb: make ref deletion after pack safer
In order not to undo concurrent modifications to references, we must make sure that we only delete a loose reference if it still has the same value as when we packed it. This means we need to lock it and then compare the value with the one we put in the packed file.
Showing
Please
register
or
sign in
to comment