threads / discuss / 26422

Fwd: GIT - cloning torvalds/linux-2.6.git repository trouble.

Subject: Fwd: GIT - cloning torvalds/linux-2.6.git repository trouble.

## tl;dr

4 messages between Feb 5, 2011 and Feb 5, 2011.

replies: 3people: 2as markdown or json

Valentin QUEQUET· Feb 5, 2011, 18:45 UTC · lore
---------- Forwarded message ----------
From: Valentin QUEQUET <valentin.quequet@gmail.com>
Date: Sat, 5 Feb 2011 18:17:57 +0000
Subject: GIT - cloning torvalds/linux-2.6.git repository trouble.
To: linux-kernel@vger.kernel.org
Hi Dear Linux enthusiasts,
I recently (yesterday) began to fetch (clone, fetch, ...) the current
  Linux GIT repository:
    http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
I first failed to fetch it through any protocol ( git:// , http:// , https:// )
  because of my UNRELIABLE WiFi connexion.
I eventually managed to download the following file :

http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/refs/heads/master http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/info/packs

http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-0b38509807589c455b1c769368348bd845441959.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-c53d2db50f885f3803a3afd46484b54c06b1433e.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-910f14bdd726702c46cfd622ee40fcaf4881a5ec.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-81315ef1065b534c70a409978aa11daf2e27fdb5.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-83898168fc5bce601472bd3260cd6b08f5f4f7b2.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-7ff1ea46fec7532e88a900a9a1340794fb3ffa3f.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-221cb4abe6bb3165bf062219200020148b83948b.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-6576226aba312e2a3b610665e35cfc466f980c55.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-0ab67efdf76cff54cd9fa5166d1df19c8edf685a.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-0b7fc86700a243d2ea341c04926c4425fe85fd26.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-fb3e46067bf5b97b6b49dbda9cda51cf3ef3b660.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-04fb51824d013a5fbac892f95369d92daf60f195.idx http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-76001124ed6335482ee1cea785f93426ab278417.idx

http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-0b38509807589c455b1c769368348bd845441959.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-c53d2db50f885f3803a3afd46484b54c06b1433e.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-910f14bdd726702c46cfd622ee40fcaf4881a5ec.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-81315ef1065b534c70a409978aa11daf2e27fdb5.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-83898168fc5bce601472bd3260cd6b08f5f4f7b2.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-7ff1ea46fec7532e88a900a9a1340794fb3ffa3f.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-221cb4abe6bb3165bf062219200020148b83948b.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-6576226aba312e2a3b610665e35cfc466f980c55.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-0ab67efdf76cff54cd9fa5166d1df19c8edf685a.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-0b7fc86700a243d2ea341c04926c4425fe85fd26.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-fb3e46067bf5b97b6b49dbda9cda51cf3ef3b660.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-04fb51824d013a5fbac892f95369d92daf60f195.pack http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-76001124ed6335482ee1cea785f93426ab278417.pack

And all these .pack and .idx files appear to be valid ones, with respect to the "git verify-pack" command.

This set of files seems to be consistent with the current state (by that time)
  of the Linux git repository (torvalds/linux-2.6.git)

Now, I would like YOU to tell ME how I can checkout from the PACKs I've just downloaded.

How may I populate the working directory , objects/xy/... , refs/... ,
... hierarchies to
  make my (local) repository usable.
I suspect I shall find this information in documentation related to
the "git fetch" command,
  but I haven't managed to get it right.
Your HELP is very welcome.
If you prefer not to pollute LKML, you may choose to aswer me at:
  valentin.quequet@gmail.com
Thanks in advance,
Valentin
Sverre Rabbelier· Feb 5, 2011, 18:52 UTC · re: Valentin QUEQUET · lore

Re: GIT - cloning torvalds/linux-2.6.git repository trouble.

Heya,

On Sat, Feb 5, 2011 at 19:45, Valentin QUEQUET <valentin.quequet@gmail.com> wrote:

Show 5 quoted lines
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/refs/heads/master
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/info/packs
>
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-0b38509807589c455b1c769368348bd845441959.idx
> http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-c53d2db50f885f3803a3afd46484b54c06b1433e.idx
<snip>

What happens if you lay out your repo like the urls? I.e. without the "http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git" prefix?

-- Cheers,

Sverre Rabbelier
Valentin QUEQUET· Feb 5, 2011, 19:08 UTC · re: Sverre Rabbelier · lore

Re: GIT - cloning torvalds/linux-2.6.git repository trouble.

2011/2/5, Sverre Rabbelier <srabbelier@gmail.com>: [...]

> What happens if you lay out your repo like the urls? I.e. without the
> "http://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git"
> prefix?
I 1st want to thank you for this suggestion.
However,

This was one of the 1st things I tried in order to get a fully-functional repository.

I think that I should be able to re-construct the whole repository from
this set of a few .pack files (450MiB) I just downloaded.
    ( .idx files are only there for optimization purpose )
How can I do that ?
    ! THAT'S THE QUESTION !
Yet,
I thank you for your answer.
Sincerely,
Valentin
Sverre Rabbelier· Feb 5, 2011, 19:10 UTC · re: Valentin QUEQUET · lore

Re: GIT - cloning torvalds/linux-2.6.git repository trouble.

Heya,

On Sat, Feb 5, 2011 at 20:08, Valentin QUEQUET <valentin.quequet@gmail.com> wrote:

> This was one of the 1st things I tried in order to get a
> fully-functional repository.

Ok, so what happened when you tried? What did 'git fsck' tell you? If it doesn't error out, try running 'git repack' followed by 'git checkout -t origin/master'?

-- 
Cheers,

Sverre Rabbelier

← back to recent threads