Code

git-fetch: ignore dereferenced tags in expand_refs_wildcard
authorMichael Loeffler <zvpunry@zvpunry.de>
Mon, 4 Dec 2006 19:34:34 +0000 (20:34 +0100)
committerJunio C Hamano <junkio@cox.net>
Mon, 4 Dec 2006 21:54:57 +0000 (13:54 -0800)
There was a little bug in the brace expansion which should remove
the ^{} from the tagname. It used ${name#'^{}'} instead of $(name%'^{}'},
the difference is that '#' will remove the given pattern only from the
beginning of a string and '%' only from the end of a string.

Signed-off-by: Michael Loeffler <zvpunry@zvpunry.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-parse-remote.sh

index 19bc3857d17b74324edbad58156a3e3c85fe0497..da064a53f666db52ce2341132a117355ad74d2a1 100755 (executable)
@@ -116,7 +116,7 @@ expand_refs_wildcard () {
                        while read sha1 name
                        do
                                mapped=${name#"$from"}
-                               if test "z$name" != "z${name#'^{}'}" ||
+                               if test "z$name" != "z${name%'^{}'}" ||
                                        test "z$name" = "z$mapped"
                                then
                                        continue