diff options
author | Mathias Rav <m@git.strova.dk> | 2018-01-18 14:38:41 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-01-19 14:16:56 -0800 |
commit | 81fcb698e03543d35c93ec6726a830aa6b9c5167 (patch) | |
tree | 6292b6776de116409c66e7902a21dcd0ec67076c /Documentation/git-unpack-objects.txt | |
parent | Prepare for 2.15.2 (diff) | |
download | tgif-81fcb698e03543d35c93ec6726a830aa6b9c5167.tar.xz |
files_initial_transaction_commit(): only unlock if locked
Running git clone --single-branch --mirror -b TAGNAME previously
triggered the following error message:
fatal: multiple updates for ref 'refs/tags/TAGNAME' not allowed.
This error condition is handled in files_initial_transaction_commit().
42c7f7ff9 ("commit_packed_refs(): remove call to `packed_refs_unlock()`", 2017-06-23)
introduced incorrect unlocking in the error path of this function,
which changes the error message to
fatal: BUG: packed_refs_unlock() called when not locked
Move the call to packed_refs_unlock() above the "cleanup:" label
since the unlocking should only be done in the last error path.
Signed-off-by: Mathias Rav <m@git.strova.dk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-unpack-objects.txt')
0 files changed, 0 insertions, 0 deletions