git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] git-fetch: ignore dereferenced tags in expand_refs_wildcard
@ 2006-12-04 19:34 Michael Loeffler
  2006-12-05  1:08 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Loeffler @ 2006-12-04 19:34 UTC (permalink / raw)
  To: git

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>
---
 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 19bc385..da064a5 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
-- 
1.4.4



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-05  1:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-04 19:34 [PATCH 1/3] git-fetch: ignore dereferenced tags in expand_refs_wildcard Michael Loeffler
2006-12-05  1:08 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).