{"thread":{"id":"5843","subject":"Problem setting up public packed repository","startedAt":"2006-10-06T21:49:31Z","lastAt":"2006-10-06T21:49:31Z","messageCount":1,"participants":["Panagiotis Issaris"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"28329","messageId":"20061006214931.GA18555@poseidon.issaris.org","threadId":"5843","inReplyTo":null,"subject":"Problem setting up public packed repository","fromName":"Panagiotis Issaris","fromEmail":"takis.issaris@uhasselt.be","sentAt":"2006-10-06T21:49:31Z","receivedAt":"2006-10-06T21:49:31Z","isPatch":false,"sender":{"key":"takis.issaris@uhasselt.be","avatar":null},"body":"Hi\n\nI'm having trouble setting up a public GIT repository. After using git-push\neverything works fine, but the repository is _big_ (261MB). But, I can clone it\nwithout any problem. If I \"git-pack -a -d\" and \"git-prune-packed\" it, the\nrepository is nicely shrinked to 14MB _but_ I can't clone it anymore. It starts\nalright and seems to look for the pack, but it just hangs at that point...\n\nTo illustrate this, I have made a \"cp -lr\" copy of that public tree [1], one as it\nwas after git-push (well in fact, it it a packed/prune-packed one, unpacked\nagain) and another which is packed/prune-packed (the 14MiB one).\n\nTrying to clone it shows this (both with git-clone and cg-clone):\n\ntakis@poseidon:/tmp$ cg-clone http://lumumba.uhasselt.be/takis/git/ffmpeg-h264.git\ndefaulting to local storage area\nFetching head...\nFetching objects...\nprogress: 38 objects, 159434 bytes\ncg-clone: interrupted\n\ntakis@poseidon:/tmp$ cg-clone http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git\ndefaulting to local storage area\nFetching head...\nFetching objects...\nGetting alternates list for http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git/\nGetting pack list for http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git/\nprogress: 0 objects, 0 bytes\ncg-clone: interrupted\n\n\nWith the packed/prune-packed repository it just hangs with the \"progress: 0\nobjects, 0 bytes\" message. So, I decided to have look what might be going on, if\nany data was actually getting in and that I was maybe just being to impatient:\n\ntakis@poseidon:/tmp/a$ ps x|grep git\n18386 pts/9    S+     0:00 /bin/sh /home/takis/bin/git-clone http://lumumba.uhasselt.be/takis/git/ffmpeg-h264-test.git\n18400 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/\n18416 pts/10   S+     0:00 grep git\n\ntakis@poseidon:/tmp/a$ strace -f -p 18400\nProcess 18400 attached - interrupt to quit\nselect(0, [], [], [], {0, 48000})       = 0 (Timeout)\npoll([{fd=4, events=POLLIN}], 1, 0)     = 0\ngettimeofday({1160169868, 454932}, NULL) = 0\ngettimeofday({1160169868, 454989}, NULL) = 0\nselect(0, [], [], [], {0, 50000})       = 0 (Timeout)\npoll([{fd=4, events=POLLIN}], 1, 0)     = 0\ngettimeofday({1160169868, 506226}, NULL) = 0\ngettimeofday({1160169868, 506277}, NULL) = 0\nselect(0, [], [], [], {0, 50000})       = 0 (Timeout)\npoll([{fd=4, events=POLLIN}], 1, 0)     = 0\ngettimeofday({1160169868, 558245}, NULL) = 0\ngettimeofday({1160169868, 558296}, NULL) = 0\nselect(0, [], [], [], {0, 50000})       = 0 (Timeout)\npoll([{fd=4, events=POLLIN}], 1, 0)     = 0\ngettimeofday({1160169868, 610227}, NULL) = 0\ngettimeofday({1160169868, 610277}, NULL) = 0\n...\n\nAnd this goes on and on and on... and there seems to be no data getting in.\n(Ofcourse at first I had just done a \"du -h\" of the clone target dir, but that\ndidn't grow. To make sure git wasn't using a hidden dir somewhere or keeping all\nthe pulled-in-data in-memory or something, I decided to look with strace).\n\nWhat am I doing wrong? Any hints?\n\nI am using the current git-GIT.\n\nThanks in advance for any replies! :)\n\nWith friendly regards,\nTakis\n\n[1] I know about the \"-l\" and \"-s\" flags, but I wanted to be 100% sure that it\nwere just copies, and no references would be pointing from here to there...\n"}]}