git-clone: fetch possibly detached HEAD over dumb http
authorSven Verdoolaege <skimo@liacs.nl>
Fri, 29 Jun 2007 08:31:08 +0000 (10:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 2 Jul 2007 08:33:44 +0000 (01:33 -0700)
commit59c93929c8b98b7be00496d61fae8979bab1841d
tree96a073b6157c1169912933b431a98af5cf1ef52d
parentbffe71f4cd44b8050e7561b9f9245febb8b21f0a
git-clone: fetch possibly detached HEAD over dumb http

git-clone supports cloning from a repo with detached HEAD,
but if this HEAD is not behind any branch tip then it
would not have been fetched over dumb http, resulting in a

fatal: Not a valid object name HEAD

Since 928c210a, this would also happen on a http repo
with a HEAD that is a symbolic link where someone has
forgotton to run update-server-info.

Signed-off-by: Sven Verdoolaege <skimo@liacs.nl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-clone.sh