{"thread":{"id":"1586","subject":"Cannot use cg-clone over http after packing a public repo","startedAt":"2005-08-19T03:35:52Z","lastAt":"2005-08-19T03:55:41Z","messageCount":2,"participants":["Martin Langhoff"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"7542","messageId":"46a038f905081820353988dfdd@mail.gmail.com","threadId":"1586","inReplyTo":null,"subject":"Cannot use cg-clone over http after packing a public repo","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2005-08-19T03:35:52Z","receivedAt":"2005-08-19T03:35:52Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"With todays git and cogito:\n\n  moodle-git-merge$ git-push-script --all ~/public_html/repos/moodle.git\n\nThis unpacked the repo completely, in spite if it being local. Anyway,\nfrom a remote machine I could do cg-clone and it succeeded, though it\ntook ages:\n\n    cg-clone http://mltest/~martin/repos/moodle.git moodle-foo\n\nSo I packed the repo\n\n  GIT_DIR=~/public_html/repos/moodle.git/ git-repack-script\n  GIT_DIR=~/public_html/repos/moodle.git/ git-prune-packed\n\nAnd now cg-clone dies -- the objects/info/packs file is missing. It's\nthere for the repos in kernel.org, but it isn't there in mine. Hmmmm.\nI don't see any option mentioned in the git-repack documentation to\ncreate them. strange.\n\ncheers,\n\n\nmartin\n"},{"id":"7543","messageId":"46a038f905081820552df81905@mail.gmail.com","threadId":"1586","inReplyTo":"46a038f905081820353988dfdd@mail.gmail.com","subject":"Re: Cannot use cg-clone over http after packing a public repo","fromName":"Martin Langhoff","fromEmail":"martin.langhoff@gmail.com","sentAt":"2005-08-19T03:55:41Z","receivedAt":"2005-08-19T03:55:41Z","isPatch":false,"sender":{"key":"martin.langhoff@gmail.com","avatar":"https://gravatar.com/avatar/1e3f311b6c4c15836501901ca58f8c0b0667246488084ba524d8bc9867e22fd9?d=mp&s=160"},"body":"Resolved. I was missing a call to git-update-server-info. It fails to\nmake the objects/info directory, so that had to be done manually.\n\n  GIT_DIR=~/public_html/repos/moodle.git git-update-server-info \n  error: cannot open\n/home/martin/public_html/repos/moodle.git/objects/info/packs+\n\n  mkdir ~/public_html/repos/moodle.git/objects/info\n  GIT_DIR=~/public_html/repos/moodle.git git-update-server-info \n\nAnd all is well. I'll update the documentation to note that dumb\nprotocols will need this. Looking at server-info.c, there _is_ a call\nto safe_create_leading_directories(), not sure why it'd fail. I'm not\nmuch of a C jockey, really.\n\nThis is with git as of a couple of ours ago:\n66e06b6a17f1074401ad23f4b2a8a146b2900333\n\ncheers,\n\n\nmartin\n"}]}