Skip to content

Commit

Permalink
git-fetch: ignore dereferenced tags in expand_refs_wildcard
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Loeffler authored and Junio C Hamano committed Dec 4, 2006
1 parent b360cca commit 4cd7535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-parse-remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4cd7535

Please sign in to comment.