git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[QUESTION] Access to a huge GIT repository.

From
FFranck <vagabon.xyz@gmail.com>
Date
Nov 16, 2005, 12:24 UTC
Message-ID
<cda58cb80511160424j1acac7c6j@mail.gmail.com>
Hi,

I'm trying to clone a small part of a big repository. This repository contains several branchs that are useless for me. Actually this repository is the linux-mips one, and branchs are used to track each kernel minor version. That is to say it contains 4 branchs which are linux-2.0, linux-2.2, linux-2.4 and master (linux-2.6).

I'd like to clone this repository without grabbing linux-2.0, linux-2.2, linux-2.4 branchs. I tried several things like:

        $ git init-db
        $ git fetch rsync://ftp.linux-mips.org/git/linux.git master

But all tries download every objects of each branchs. I believe that's because of (a) the protocol used to access of the remote repo (b) the master branch has been created from linux-2.4 branch so its first commit object contains a branch 2.4 commit obj as parent object (let's call it the "father" object). Is that correct ?

So I downloaded the whole thing, and try to remove "father" object and right after run a 'git prune'. But unfortunately I can't find it anywhere in .git directory. I did:

        $ git-verify-pack < .git/objects/pack/*.idx
        $ git-unpack-objects < .git/objects/pack/*.pack

But I can't find "father object" anywhere in .git/objects directory. Still it's referenced by .git/objects/pack/pack-....idx file.

Can anybody give me some advices ?
Thanks
--
               Franck
Next: Linus Torvalds
Message 1 of 22 in “[QUESTION] Access to a huge GIT repository.”
  1. FranckNov 16, 2005
  2. Linus TorvaldsNov 16, 2005
  3. FranckNov 17, 2005
  4. Linus TorvaldsNov 17, 2005
  5. FranckNov 17, 2005
  6. Linus TorvaldsNov 17, 2005
  7. FranckNov 19, 2005
  8. Lukas SandströmNov 19, 2005
  9. Junio C HamanoNov 19, 2005
  10. Linus TorvaldsNov 19, 2005
  11. Junio C HamanoNov 19, 2005
  12. FranckNov 21, 2005
  13. Junio C HamanoNov 21, 2005
  14. FranckNov 22, 2005
  15. Junio C HamanoNov 22, 2005
  16. FranckNov 22, 2005
  17. Junio C HamanoNov 22, 2005
  18. FranckNov 22, 2005
  19. Junio C HamanoNov 16, 2005
  20. Martin LanghoffNov 16, 2005
  21. Linus TorvaldsNov 16, 2005
  22. Junio C HamanoNov 16, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.