update-ref: use err argument to get error from ref_transaction_commit
authorRonnie Sahlberg <redacted>
Fri, 20 Jun 2014 14:42:58 +0000 (07:42 -0700)
committerJunio C Hamano <redacted>
Mon, 14 Jul 2014 18:54:42 +0000 (11:54 -0700)
commit8bcd37482e95b47119f3a8f03a1c8ce5815594a3
treec37816ef45cb5947b880272c0f2c81c94ea923e1
parentc1703d7634a61b4d08d77fa0d9ca7e7ad92c3cb8
update-ref: use err argument to get error from ref_transaction_commit

Call ref_transaction_commit with QUIET_ON_ERR and use the strbuf that is
returned to print a log message if/after the transaction fails.

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