git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] Ignore tags that contain colons in their names

From
SRSimon Richter <simon.richter@kleinhenz.de>
Date
Jan 4, 2006, 13:13 UTC
Message-ID
<43BBCA0A.6020906@kleinhenz.de>
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
Next: Junio C Hamano
Message 1 of 2 in “Ignore tags that contain colons in their names”
  1. Ignore tags that contain colons in their namesSimon Richter, Jan 4, 2006
  2. Junio C HamanoJan 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.