threads / discuss / 4971

Re: Can't clone Linus tree

Subject: Re: Can't clone Linus tree

## tl;dr

2 messages between Jul 24, 2006 and Jul 24, 2006.

replies: 1people: 1as markdown or json

Rene Scharfe· Jul 24, 2006, 09:55 UTC · lore
Tomasz Torcz schrieb:
Show 23 quoted lines
>  Hi,
> 
>  yesterdat I wanted to bisect my kernel problem, but failed at first step:
> cloning Linus' tree. Today I tried it on other system and also failed.
> 
>  This is git-1.4.0 on Slackware, i586:
> 
> %  git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-git
> fatal: packfile '/home/zdzichu/linux-git/.git/objects/pack/tmp-1jI4AH' SHA1 mismatch
> error: git-fetch-pack: unable to read from git-index-pack
> error: git-index-pack died with error code 128
> fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.
> 
>  And this is 1.4.0-1.fc5 on FC5, x86_64:
> % git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-git
> fatal: packfile '/home/tomek/linux-git/.git/objects/pack/tmp-BxIcIC' SHA1 mismatch
> error: git-fetch-pack: unable to read from git-index-pack
> error: git-index-pack died with error code 128
> fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.
> 
>  Errors occur constantly since yesterday. They of course appear after
> downloading several megabytes of data, which is unpleasant on my 128kbps
> connection.

Same here with both the master and next branch of git. rsync as suggested by Johannes Weiner works. You can change the protocol back to git in .git/remotes/origin after cloning; pulling small changes seems to work fine.

strace tells me that safe_read at pkt-line.c:111 gets only 305 of the expected 996 bytes and then dies. I have no idea how that might happen. :-/

Pulling the git repository works using the git protocol, btw.
René
Rene Scharfe· Jul 24, 2006, 10:36 UTC · re: Rene Scharfe · lore
Show 6 quoted lines
> Tomasz Torcz schrieb:
>> %  git clone git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-git
>> fatal: packfile '/home/zdzichu/linux-git/.git/objects/pack/tmp-1jI4AH' SHA1 mismatch
>> error: git-fetch-pack: unable to read from git-index-pack
>> error: git-index-pack died with error code 128
>> fetch-pack from 'git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git' failed.

Ah, I just saw this is a known problem and there's a patch by Matthias Lederhofer, which Junio just accepted, I think (the mail with subject "[PATCH] upload-pack: fix timeout in create_pack_file)" on the git mailing list.

The problem is apparently that the server expects you (wrongly) to finish your download session within ten minutes. Until the server is fixed you can use rsync:// for the initial clone and git:// for smaller updates.

René

← back to recent threads