Skip to content

Commit 4cd7535

Browse files
zvpunryJunio C Hamano
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent b360cca commit 4cd7535

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-parse-remote.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ expand_refs_wildcard () {
116116
while read sha1 name
117117
do
118118
mapped=${name#"$from"}
119-
if test "z$name" != "z${name#'^{}'}" ||
119+
if test "z$name" != "z${name%'^{}'}" ||
120120
test "z$name" = "z$mapped"
121121
then
122122
continue

0 commit comments

Comments
 (0)