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

4 messages from 2011-02-05 to 2011-02-05. Participants: Valentin QUEQUET, Sverre Rabbelier.
Thread: https://gitlist.dev/t/26422

## Valentin QUEQUET, 2011-02-05 18:45

Subject: Fwd: GIT - cloning torvalds/linux-2.6.git repository trouble.
Message-ID: <AANLkTi=FAWh9T3HaocdKB7V4osRPsehTo=hTP0U-JbfR@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DFAWh9T3HaocdKB7V4osRPsehTo%3DhTP0U-JbfR%40mail.gmail.com
In-Reply-To: <AANLkTikiKagzJMh_xuOSzfA4c-qxOHhVeU2jhmbaDHji@mail.gmail.com>

```
---------- 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, 2011-02-05 18:52

Subject: Re: GIT - cloning torvalds/linux-2.6.git repository trouble.
Message-ID: <AANLkTi=E3gWG2-3nLBW6JP+Wks2=4oUWSNSpk0=qEaU-@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DE3gWG2-3nLBW6JP%2BWks2%3D4oUWSNSpk0%3DqEaU-%40mail.gmail.com
In-Reply-To: <AANLkTi=FAWh9T3HaocdKB7V4osRPsehTo=hTP0U-JbfR@mail.gmail.com>

```
Heya,

On Sat, Feb 5, 2011 at 19:45, Valentin QUEQUET
<valentin.quequet@gmail.com> wrote:
> 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, 2011-02-05 19:08

Subject: Re: GIT - cloning torvalds/linux-2.6.git repository trouble.
Message-ID: <AANLkTikYPHhVaKYsQpZ2FhjxAdLetPgkPFQ-b-VtkBTJ@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTikYPHhVaKYsQpZ2FhjxAdLetPgkPFQ-b-VtkBTJ%40mail.gmail.com
In-Reply-To: <AANLkTi=E3gWG2-3nLBW6JP+Wks2=4oUWSNSpk0=qEaU-@mail.gmail.com>

```
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, 2011-02-05 19:10

Subject: Re: GIT - cloning torvalds/linux-2.6.git repository trouble.
Message-ID: <AANLkTim996+Ho_=xjkzOrGx65-6ajtObLVLwD5E0v4MW@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTim996%2BHo_%3DxjkzOrGx65-6ajtObLVLwD5E0v4MW%40mail.gmail.com
In-Reply-To: <AANLkTikYPHhVaKYsQpZ2FhjxAdLetPgkPFQ-b-VtkBTJ@mail.gmail.com>

```
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

```
