Re: Error "fatal: cannot pread pack file: Success"
On Wednesday, February 28, 2007 at 10:12:50 (-0600) Bill Lear writes:
Show 27 quoted lines
>On Wednesday, February 28, 2007 at 10:54:12 (-0500) Shawn O. Pearce writes:
>>Bill Lear <rael@zopyra.com> wrote:
>>> fatal: cannot pread pack file: Success [n=0; rdy=0; len=207]
>>> fatal: index-pack died with error code 128
>>> fetch-pack from '/home/rael/devel/project/.git' failed.
>>
>>Bwhat?!? Can you print out the offset and the size of the packfile?
>>It looks like your pack has been truncated? Or is this just your
>>filesystem saying "nahh, I'm not going to give you that data right
>>now, try again later and maybe I will"?
>
>The code has this:
>
> unsigned long from = obj[0].offset + obj[0].hdr_size;
> unsigned long len = obj[1].offset - from;
>
>by "offset", do you want obj[0].offset and obj[1].offset?
>
>How do I get the size of the packfile? Is it obj->size?
>
>Well, I went ahead and did that. Here are the results:
>
>% git clone --bare ~/devel/project
>[...]
>Resolving 2210 deltas.
>fatal: cannot pread pack file: Success [obj[0].offset=39393; obj[1].offset=39602; n=305; obj->size=0; rdy=0; len=207]
>fatal: index-pack died with error code 128
Above has n and obj->size switched, sorry.
Bill