From: Junio C Hamano Date: Thu, 15 Dec 2005 01:53:06 GMT Subject: Re: How to clone-pack the HEAD? Message-ID: <7vlkynrurh.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <7vpsnzrv43.fsf@assigned-by-dhcp.cox.net> Junio C Hamano writes: > Petr Baudis writes: > >> 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.