Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
files_transaction_prepare(): fix handling of ref lock failure
[gitweb.git]
/
refs
/
files-backend.c
diff --git
a/refs/files-backend.c
b/refs/files-backend.c
index 961424a4ea7e9d08f65e053243ad2def93456feb..a8c29b7865e327e9a09dc832fb0ea7994ce82ce5 100644
(file)
--- a/
refs/files-backend.c
+++ b/
refs/files-backend.c
@@
-2527,7
+2527,7
@@
static int files_transaction_prepare(struct ref_store *ref_store,
ret = lock_ref_for_update(refs, update, transaction,
head_ref, &affected_refnames, err);
if (ret)
-
break
;
+
goto cleanup
;
if (update->flags & REF_DELETING &&
!(update->flags & REF_LOG_ONLY) &&