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

Re: git-http-pull broken in latest git

From
Junio C Hamano <junkio@cox.net>
Date
Aug 11, 2005, 23:21 UTC
Message-ID
<7v4q9wf4ad.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20050811223349.GI25280@pasky.ji.cz>
Petr Baudis <pasky@suse.cz> writes:
> $ git-cat-file commit bf570303153902ec3d85570ed24515bcf8948848 | grep tree
> tree 41f10531f1799bbb31a1e0f7652363154ce96f45
> $ git-read-tree 41f10531f1799bbb31a1e0f7652363154ce96f45
> fatal: failed to unpack tree object 41f10531f1799bbb31a1e0f7652363154ce96f45
> Kaboom. I think the issue might be that the reference dependency tree
> building is broken and it should've pulled the other pack as well.

Last time I checked, git-http-pull did not utilize the pack dependency information, which indeed is wrong. When it decides to fetch a pack instead of an asked-for object, it should check which commits the pack expects to have in your local repository and add them to its list of things to slurp.

A good news is that "git clone" as a whole works fine.
    prompt$ cd /var/tmp/
    prompt$ rm -fr junk
    prompt$ git clone http://www.kernel.org/pub/scm/git/git.git junk
    defaulting to local storage area
    prompt$ cd junk
    prompt$ git-cat-file commit bf570303153902ec3d85570ed24515bcf8948848 |
            grep tree
    tree 41f10531f1799bbb31a1e0f7652363154ce96f45
    prompt$ git-read-tree 41f10531f1799bbb31a1e0f7652363154ce96f45
    prompt$ /bin/ls .git/objects/pack
    pack-37cba29d3df65b160afabe769470f7857f98d729.idx
    pack-37cba29d3df65b160afabe769470f7857f98d729.pack
    pack-3c5133604508466855453f3e609428f4bbba9131.idx
    pack-3c5133604508466855453f3e609428f4bbba9131.pack
    prompt$ 
Previous: Petr BaudisNext: Daniel Barkalow
Message 3 of 11 in “cg-clone http://www.kernel.org/pub/scm/git/git.git fails”
  1. Dirk BehmeAug 9, 2005
  2. git-http-pull broken in latest gitPetr Baudis, Aug 11, 2005
  3. Junio C HamanoAug 11, 2005
  4. Re: git-http-pull broken in latest gitDaniel Barkalow, Aug 11, 2005
  5. Junio C HamanoAug 12, 2005
  6. Daniel BarkalowAug 12, 2005
  7. Junio C HamanoAug 11, 2005
  8. Petr BaudisAug 12, 2005
  9. Re: git-http-pull broken in latest gitDaniel Barkalow, Aug 12, 2005
  10. Junio C HamanoAug 12, 2005
  11. Daniel BarkalowAug 12, 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.