Re: [PATCH] Remove the close_ref function.

2014-04-08 Thread Ronnie Sahlberg
On Tue, Apr 8, 2014 at 2:50 PM, Junio C Hamano wrote: > Ronnie Sahlberg writes: > >> @@ -2824,8 +2816,7 @@ int write_ref_sha1(struct ref_lock *lock, >> return -1; >> } >> if (write_in_full(lock->lock_fd, sha1_to_hex(sha1), 40) != 40 || >> - write_in_full(lock->lo

Re: [PATCH] Remove the close_ref function.

2014-04-08 Thread Junio C Hamano
Ronnie Sahlberg writes: > @@ -2824,8 +2816,7 @@ int write_ref_sha1(struct ref_lock *lock, > return -1; > } > if (write_in_full(lock->lock_fd, sha1_to_hex(sha1), 40) != 40 || > - write_in_full(lock->lock_fd, &term, 1) != 1 > - || close_ref(lock) < 0) {