ref_transaction_commit(): correctly report close_ref() failure

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
This commit is contained in:
Michael Haggerty 2016-04-25 11:58:23 +02:00
parent c52ce248d6
commit 5a563d4ad1

View File

@ -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;
}
}