Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: git 1.5.1-rc1 doesn't like empty files

From: Pavel Roskin <hidden>
Date: 2016-06-15 22:43:00

Possibly related (same subject, not in this thread)

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help