2008-06-13 07:47:25

by Shen Feng

[permalink] [raw]
Subject: git-clone problem

Hello,

When I try to clone the ext4 development tree, I got the following error.
Is there anything wrong?


[fenian@localhost ~]$ git-clone http://www.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git
Initialized empty Git repository in /home/fenian/ext4/.git/
Getting alternates list for http://www.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git
Also look at http://www.kernel.org/home/ftp/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
Getting pack list for http://www.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git
Getting index for pack baa9df600683550be458e0a94470c81726b0cf0b
Getting pack baa9df600683550be458e0a94470c81726b0cf0b
which contains 60badd00b131a5e8db3e765959aed5c41a5796c6
walk 60badd00b131a5e8db3e765959aed5c41a5796c6
walk 7decd67852ad1cdb9fc1ac165d11b69845e9d650
Getting pack list for http://www.kernel.org/home/ftp/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/
error: Unable to find 060a71d41ad7ccc3214065a182e6f67568420071 under http://www.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git
Cannot obtain needed blob 060a71d41ad7ccc3214065a182e6f67568420071
while processing commit 7decd67852ad1cdb9fc1ac165d11b69845e9d650.

-Shen Feng


2008-06-13 15:43:28

by Theodore Ts'o

[permalink] [raw]
Subject: Re: git-clone problem

On Fri, Jun 13, 2008 at 03:44:04PM +0800, Shen Feng wrote:
> Hello,
>
> When I try to clone the ext4 development tree, I got the following error.
> Is there anything wrong?
>
> [fenian@localhost ~]$ git-clone http://www.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git

Dont use the http transport; it's not very efficient, and often
breaks. I've fixed it for now (the hook to automatically run "git
update-server-info" was missing), but you'll get much faster and more
reliable results if you clone via the URL:

git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git

Actually the best thing to do is if you already have a local
repository of the kernel, to do:

git clone -s my-clone-of-linus-tree ext4

The edit the .git/config file so the url for [remote "master"] is:

git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4.git

... and do a "git pull". This will be much more efficient since you
limit the amount of data that you have to pull down over the network.

Note that the ext4 patch queue tends to have a much more dynamic and
bleeding-edge set of patches than the ext4 git tree. The ext4 patch
queue is a quilt patch series maintained at this git repository:

git://repo.or.cz/ext4-patch-queue.git

- Ted