@matheusbsbs / matheus-bagliano / commits / 4cd75359ad
Fork 0

git-fetch: ignore dereferenced tags in expand_refs_wildcard

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>

Michael Loeffler committed Dec 4, 2006 at 20:34 UTC 4cd75359ad5d4c90ba6ae6d68ffb6d00e5092b8a
1 file changed +1 -1
git-parse-remote.sh
+1 -1
@@ -116,7 +116,7 @@ expand_refs_wildcard () {
116 while read sha1 name
117 do
118 mapped=${name#"$from"}
119 - if test "z$name" != "z${name#'^{}'}" ||
119 + if test "z$name" != "z${name%'^{}'}" ||
120 test "z$name" = "z$mapped"
121 then
122 continue