From: Michael Loeffler Date: Mon, 4 Dec 2006 19:34:34 +0000 (+0100) Subject: git-fetch: ignore dereferenced tags in expand_refs_wildcard X-Git-Tag: v1.5.0-rc0~167 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4cd75359ad5d4c90ba6ae6d68ffb6d00e5092b8a;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-parse-remote.sh b/git-parse-remote.sh index 19bc3857d..da064a53f 100755 --- a/git-parse-remote.sh +++ b/git-parse-remote.sh @@ -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