Catch write_ref_sha1 failure in receive-pack
authorShawn O. Pearce <spearce@spearce.org>
Wed, 7 Mar 2007 17:04:24 +0000 (12:04 -0500)
committerJunio C Hamano <junkio@cox.net>
Wed, 7 Mar 2007 18:01:44 +0000 (10:01 -0800)
commitef203f08564c1c6d267fedf8e0357c56d477892f
treecbc2b6f403cab3873b065eff13fb1214996316a1
parent58db64f73c3dedb41467f915b45d305d52d04d2c
Catch write_ref_sha1 failure in receive-pack

This failure to catch the failure of write_ref_sha1 was noticed
by Bill Lear.  The ref will not update if the log file could not
be appended to (due to file permissions problems).  Such a failure
should be flagged as a failure to update the ref, so that the client
knows the push did not succeed.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
receive-pack.c