summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b360cca)
raw | patch | inline | side by side (parent: b360cca)
author | Michael Loeffler <zvpunry@zvpunry.de> | |
Mon, 4 Dec 2006 19:34:34 +0000 (20:34 +0100) | ||
committer | Junio 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>
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 | patch | blob | history |
diff --git a/git-parse-remote.sh b/git-parse-remote.sh
index 19bc3857d17b74324edbad58156a3e3c85fe0497..da064a53f666db52ce2341132a117355ad74d2a1 100755 (executable)
--- a/git-parse-remote.sh
+++ b/git-parse-remote.sh
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