refs.c: make update_ref_write update a strbuf on failure
commitc1703d7634a61b4d08d77fa0d9ca7e7ad92c3cb8
authorRonnie Sahlberg <sahlberg@google.com>
Fri, 20 Jun 2014 14:42:57 +0000 (20 07:42 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 14 Jul 2014 18:54:42 +0000 (14 11:54 -0700)
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 <jrnieder@gmail.com>
Signed-off-by: Ronnie Sahlberg <sahlberg@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Michael Haggerty <mhagger@alum.mit.edu>
refs.c