Forward port the "funny ref avoidance" in clone and fetch from maint branch.
[gitweb.git] / git-fetch.sh
index 0cb1596f50c998ba1f4ac0e2049e1c18459fc5a8..31b1cf0306c238dad7fb5b808a7925776ac4d762 100755 (executable)
@@ -176,7 +176,7 @@ if test "$tags"
 then
        taglist=$(git-ls-remote --tags "$remote" |
                sed -e '
-                       /\^{}$/d
+                       /\^/d
                        s/^[^   ]*      //
                        s/.*/&:&/')
        if test "$#" -gt 1