From: Pavel Roskin Date: Tue, 20 Mar 2007 05:47:56 GMT Subject: Re: git 1.5.1-rc1 doesn't like empty files Message-ID: <1174369676.8210.5.camel@dv> In-Reply-To: <7vslc0bhz7.fsf@assigned-by-dhcp.cox.net> On Mon, 2007-03-19 at 22:29 -0700, Junio C Hamano wrote: > if (status < 0) > error("corrupt loose object '%s'", > sha1_to_hex(sha1)); > else if (stream->avail_in) > error("garbage at end of loose object '%s'", > sha1_to_hex(sha1)); > free(buf); > return NULL; > } > > Can you check what the value of the status is at that point? status is 0 (Z_OK), stream->avail_in is 8. I changed the code to print them from the error() that prints "garbage at end of loose object". -- Regards, Pavel Roskin