* Cannot use cg-clone over http after packing a public repo
@ 2005-08-19 3:35 Martin Langhoff
2005-08-19 3:55 ` Martin Langhoff
0 siblings, 1 reply; 2+ messages in thread
From: Martin Langhoff @ 2005-08-19 3:35 UTC (permalink / raw)
To: GIT
With todays git and cogito:
moodle-git-merge$ git-push-script --all ~/public_html/repos/moodle.git
This unpacked the repo completely, in spite if it being local. Anyway,
from a remote machine I could do cg-clone and it succeeded, though it
took ages:
cg-clone http://mltest/~martin/repos/moodle.git moodle-foo
So I packed the repo
GIT_DIR=~/public_html/repos/moodle.git/ git-repack-script
GIT_DIR=~/public_html/repos/moodle.git/ git-prune-packed
And now cg-clone dies -- the objects/info/packs file is missing. It's
there for the repos in kernel.org, but it isn't there in mine. Hmmmm.
I don't see any option mentioned in the git-repack documentation to
create them. strange.
cheers,
martin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Cannot use cg-clone over http after packing a public repo
2005-08-19 3:35 Cannot use cg-clone over http after packing a public repo Martin Langhoff
@ 2005-08-19 3:55 ` Martin Langhoff
0 siblings, 0 replies; 2+ messages in thread
From: Martin Langhoff @ 2005-08-19 3:55 UTC (permalink / raw)
To: GIT
Resolved. I was missing a call to git-update-server-info. It fails to
make the objects/info directory, so that had to be done manually.
GIT_DIR=~/public_html/repos/moodle.git git-update-server-info
error: cannot open
/home/martin/public_html/repos/moodle.git/objects/info/packs+
mkdir ~/public_html/repos/moodle.git/objects/info
GIT_DIR=~/public_html/repos/moodle.git git-update-server-info
And all is well. I'll update the documentation to note that dumb
protocols will need this. Looking at server-info.c, there _is_ a call
to safe_create_leading_directories(), not sure why it'd fail. I'm not
much of a C jockey, really.
This is with git as of a couple of ours ago:
66e06b6a17f1074401ad23f4b2a8a146b2900333
cheers,
martin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-19 3:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-19 3:35 Cannot use cg-clone over http after packing a public repo Martin Langhoff
2005-08-19 3:55 ` Martin Langhoff
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).