[PATCH] refs.c: handle locking failure during transaction better

2014-11-18 Thread Stefan Beller
From: Ronnie Sahlberg Change lock_ref_sha1_basic to return an error instead of dying, when we fail to lock a file during a transaction. This function is only called from transaction_commit() and it knows how to handle these failures. [sb: This was part of a larger patch series, cherry-picked to

Re: [PATCH] refs.c: handle locking failure during transaction better

2014-11-18 Thread Stefan Beller
I messed up authorship on this one. This was of course found and authored by Ronnie. On Tue, Nov 18, 2014 at 3:17 PM, Stefan Beller wrote: > Change lock_ref_sha1_basic to return an error instead of dying, > when we fail to lock a file during a transaction. This function is > only called from tran

[PATCH] refs.c: handle locking failure during transaction better

2014-11-18 Thread Stefan Beller
Change lock_ref_sha1_basic to return an error instead of dying, when we fail to lock a file during a transaction. This function is only called from transaction_commit() and it knows how to handle these failures. Signed-off-by: Ronnie Sahlberg Signed-off-by: Jonathan Nieder Cherry-picked-to-maste