Subject: [PATCH] Ignore tags that contain colons in their names

From: Simon Richter <[email-masked]>
Date: Wed, 04 Jan 2006 14:13:46 +0100

Hi,

a repo I was trying to clone contained a tag that somehow had a colon in 
its name, which is illegal. The attached patch makes git-fetch ignore 
these tags rather than barf.

    Simon
diff --git a/git-fetch.sh b/git-fetch.sh
index 125bcea..6d930b2 100755
--- a/git-fetch.sh
+++ b/git-fetch.sh
@@ -191,6 +191,7 @@ then
 	taglist=$(git-ls-remote --tags "$remote" |
 		sed -e '
 			/\^/d
+			/:/d
 			s/^[^	]*	//
 			s/.*/.&:&/')
 	if test "$#" -gt 1