Junio C Hamano [off-list ref] writes:
Petr Baudis [off-list ref] writes:
quoted
Except that I cannot do the guessing git-clone-pack does (without
fetching all the branches)
Exactly my point. If you are not getting all the branches, you
are not cloning but doing something else.
Not really. I take this back. What you want to do I did not
understand well enough.
HEAD is kinda special. A hack I can think of is to do ls-remote
first and do the guess clone-pack does for full clone case, and
then give a specific branch name to clone. That might work.