ref_transaction_commit(): correctly report close_ref() failure
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
This commit is contained in:
parent
c52ce248d6
commit
5a563d4ad1
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user