summaryrefslogtreecommitdiff
path: root/refs
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2016-04-25 11:58:23 +0200
committerMichael Haggerty <mhagger@alum.mit.edu>2016-06-13 11:23:49 +0200
commit5a563d4ad17a66aabeacfd0f221ac45c07bc4ee8 (patch)
tree04962c654c1c0e8607c8113634f445c80ef5962a /refs
parentc52ce248d63a185eb0a616b361d1fd72c5c66451 (diff)
downloadgit-5a563d4ad17a66aabeacfd0f221ac45c07bc4ee8.tar.gz
ref_transaction_commit(): correctly report close_ref() failure
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Diffstat (limited to 'refs')
-rw-r--r--refs/files-backend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/refs/files-backend.c b/refs/files-backend.c
index 35d37ce58b..85e1e1c759 100644
--- a/refs/files-backend.c
+++ b/refs/files-backend.c
@@ -3139,6 +3139,7 @@ int ref_transaction_commit(struct ref_transaction *transaction,
if (close_ref(update->lock)) {
strbuf_addf(err, "couldn't close '%s.lock'",
update->refname);
+ ret = TRANSACTION_GENERIC_ERROR;
goto cleanup;
}
}