From: Petr Baudis <pasky@ucw.cz>
To: junkio@cox.net
Cc: git@vger.kernel.org
Subject: How to clone-pack the HEAD?
Date: Thu, 15 Dec 2005 01:44:40 +0100 [thread overview]
Message-ID: <20051215004440.GM22159@pasky.or.cz> (raw)
Hello,
I'd like to make cg-clone use git-clone-pack instead of git-fetch-pack
so that it gets actually usable on large repositories, but I'm hitting
problems:
(i) git-clone-pack url HEAD doesn't work
If .git/HEAD already exists, it will panick because of the
write_one_ref()'s O_CREAT|O_EXCL. If .git/HEAD doesn't exist,
git-clone-pack refuses to do anything since it doesn't run
with valid GIT repository.
(ii) git-clone-pack has hardcoded assumptions about refs/heads/master
The problem is, git-clone-pack doesn't seem to care about what
ref does HEAD point to at the remote side, it just starts to
panic and do weird things if it isn't master, which seems
"really really wrong". Also, because git-clone-pack ... HEAD
doesn't work, I think I have no way to clone the actual HEAD
ref of the remote repository.
Overally, I think what I really need is git-fetch-pack (with it
outputting the ref info which I can write on my own, DTRT'ing from
the Cogito POV), just with the option not to unpack the pack.
I'd be very happy if fixing this would be possible before 1.0 so that
I can fix Cogito's fetching over git and ssh ASAP - git-clone-pack's
architecture seems to be way too much hardcoded to carry over head names
to the cloned repository (which is fine for the GIT porcelainish, but
not for Cogito philosophy).
PS: Sorry if this mail is a bit incoherent - I'm already falling
asleep over the keyboard, but I don't want to see GIT 1.0 fly by during
the night. ;-) BTW, Junio, do you have any timeline (more precise than
"in the coming week(s)") for the release, or are you just waiting for
"n days without big problem" or something like that?
Thanks,
--
Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
VI has two modes: the one in which it beeps and the one in which
it doesn't.
next reply other threads:[~2005-12-15 0:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-15 0:44 Petr Baudis [this message]
2005-12-15 1:20 ` How to clone-pack the HEAD? Junio C Hamano
2005-12-15 1:32 ` Petr Baudis
2005-12-15 1:45 ` Junio C Hamano
2005-12-15 1:53 ` Junio C Hamano
2005-12-15 5:29 ` Junio C Hamano
2005-12-15 6:21 ` Junio C Hamano
2005-12-18 0:53 ` Petr Baudis
2005-12-18 0:38 ` Petr Baudis
2005-12-15 1:59 ` Petr Baudis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051215004440.GM22159@pasky.or.cz \
--to=pasky@ucw.cz \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).