diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2016-04-25 12:58:23 +0300 |
---|---|---|
committer | Michael Haggerty <mhagger@alum.mit.edu> | 2016-06-13 12:23:49 +0300 |
commit | 5a563d4ad17a66aabeacfd0f221ac45c07bc4ee8 (patch) | |
tree | 04962c654c1c0e8607c8113634f445c80ef5962a | |
parent | c52ce248d63a185eb0a616b361d1fd72c5c66451 (diff) |
ref_transaction_commit(): correctly report close_ref() failure
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
-rw-r--r-- | refs/files-backend.c | 1 |
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; } } |