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

Problem cloning packed-and-pruned http repository

From
PIPanagiotis Issaris <takis@lumumba.uhasselt.be>
Date
Oct 6, 2006, 21:26 UTC
Message-ID
<20061006212616.GA5175@lumumba.uhasselt.be>
Hi

I've been having trouble setting up a public repository using GIT. After I have pushed my repository to a directory within ~/public_html, I can clone it. But the repository is _big_ (261M).

So, I use "git-repack" on it and a "git-prune-packed". This makes it nicely fit in 14MiB. If I try to clone this pruned/packed repository again both cg-clone hangs on it (as does git-clone).

Here's two outputs demonstrating this. One repository was a "cp -lr" clone [1] of the other, and one was packed/pruned, the other wasn't: takis@poseidon:/tmp$ cg-clone http://lumumba.uhasselt.be/takis/git/ffmpeg-h264.git defaulting to local storage area Fetching head... Fetching objects... progress: 38 objects, 159434 bytes cg-clone: interrupted takis@poseidon:/tmp$ cg-clone http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git defaulting to local storage area Fetching head... Fetching objects... Getting alternates list for http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git/ Getting pack list for http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git/ progress: 0 objects, 0 bytes cg-clone: interrupted

So, I tried tracing it, to see what was going on: takis@poseidon:/tmp/a$ ps x|grep git 18386 pts/9 S+ 0:00 /bin/sh /home/takis/bin/git-clone http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git 18400 pts/9 S+ 0:00 git-http-fetch -v -a -w heads/master heads/master http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git/ 18416 pts/10 S+ 0:00 grep git

takis@poseidon:/tmp/a$ strace -f -p 18400 Process 18400 attached - interrupt to quit select(0, [], [], [], {0, 48000}) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 0) = 0 gettimeofday({1160169868, 454932}, NULL) = 0 gettimeofday({1160169868, 454989}, NULL) = 0 select(0, [], [], [], {0, 50000}) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 0) = 0 gettimeofday({1160169868, 506226}, NULL) = 0 gettimeofday({1160169868, 506277}, NULL) = 0 select(0, [], [], [], {0, 50000}) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 0) = 0 gettimeofday({1160169868, 558245}, NULL) = 0 gettimeofday({1160169868, 558296}, NULL) = 0 select(0, [], [], [], {0, 50000}) = 0 (Timeout) poll([{fd=4, events=POLLIN}], 1, 0) = 0 gettimeofday({1160169868, 610227}, NULL) = 0 gettimeofday({1160169868, 610277}, NULL) = 0 select(0, [], [], [], {0, 50000}) = 0 (Timeout) ...

And this keeps going on... so I can't see any data getting in :-(
Any hints what I might be doing wrong?
Thanks in advance for any replies! :)

With friendly regards, Takis

[1] I am aware of "git-clone -l -s" but wanted to make fully independent copy and wasn't sure about any links between them if only using "-l".

-- 
OpenPGP key: http://lumumba.uhasselt.be/takis/takis_public_key.txt
fingerprint: 6571 13A3 33D9 3726 F728  AA98 F643 B12E ECF3 E029
Next: Panagiotis Issaris
Message 1 of 19 in “Problem cloning packed-and-pruned http repository”
  1. Panagiotis IssarisOct 6, 2006
  2. Panagiotis IssarisOct 6, 2006
  3. SeanOct 6, 2006
  4. Add WEBDAV timeout to http-fetch.Sean, Oct 7, 2006
  5. Junio C HamanoOct 7, 2006
  6. Jakub NarebskiOct 7, 2006
  7. Johannes SchindelinOct 7, 2006
  8. Petr BaudisOct 7, 2006
  9. Petr BaudisOct 7, 2006
  10. Johannes SchindelinOct 7, 2006
  11. Junio C HamanoOct 8, 2006
  12. Johannes SchindelinOct 8, 2006
  13. SeanOct 8, 2006
  14. Junio C HamanoOct 8, 2006
  15. Panagiotis IssarisOct 11, 2006
  16. Johannes SchindelinOct 11, 2006
  17. Panagiotis IssarisOct 7, 2006
  18. Junio C HamanoOct 7, 2006
  19. Panagiotis IssarisOct 7, 2006

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.