refs.c: make update_ref_write update a strbuf on failure
authorRonnie Sahlberg <redacted>
Fri, 20 Jun 2014 14:42:57 +0000 (07:42 -0700)
committerJunio C Hamano <redacted>
Mon, 14 Jul 2014 18:54:42 +0000 (11:54 -0700)
commitc1703d7634a61b4d08d77fa0d9ca7e7ad92c3cb8
tree1847c07108a6cc12a736aa349680362ca58252ac
parent038d005129467a514189e8cc1321022f71f6a51e
refs.c: make update_ref_write update a strbuf on failure

Change update_ref_write to also update an error strbuf on failure.
This makes the error available to ref_transaction_commit callers if the
transaction failed due to update_ref_sha1/write_ref_sha1 failures.

Reviewed-by: Jonathan Nieder <redacted>
Signed-off-by: Ronnie Sahlberg <redacted>
Signed-off-by: Junio C Hamano <redacted>
Acked-by: Michael Haggerty <redacted>
refs.c
git clone https://git.99rst.org/PROJECT