Forward port the "funny ref avoidance" in clone and fetch from maint branch.

Somehow I forgot to forward port these fixes.  "git clone" from a
repository prepared with the latest update-server-info would fail
without this patch.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano
2005-10-17 21:47:06 -07:00
parent 508c1d1c9b
commit cdb3950801
2 changed files with 6 additions and 2 deletions

View File

@ -176,7 +176,7 @@ if test "$tags"
then
taglist=$(git-ls-remote --tags "$remote" |
sed -e '
/\^{}$/d
/\^/d
s/^[^ ]* //
s/.*/&:&/')
if test "$#" -gt 1