diff options
author | Michael Loeffler <zvpunry@zvpunry.de> | 2006-12-04 20:34:34 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-12-04 13:54:57 -0800 |
commit | 4cd75359ad5d4c90ba6ae6d68ffb6d00e5092b8a (patch) | |
tree | d69413e03f6540335c5ead068cacb4cea6d5aa2a /git-parse-remote.sh | |
parent | b360cca0b100e14abffa4cae78521b493c783738 (diff) | |
download | git-4cd75359ad5d4c90ba6ae6d68ffb6d00e5092b8a.tar.gz git-4cd75359ad5d4c90ba6ae6d68ffb6d00e5092b8a.tar.xz |
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>
Diffstat (limited to 'git-parse-remote.sh')
-rwxr-xr-x | git-parse-remote.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 |