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

Re: cg-clone not fetching all tags?

From
WDWolfgang Denk <wd@denx.de>
Date
Apr 30, 2006, 13:48 UTC
Message-ID
<20060430134840.0027C353B12@atlas.denx.de>
In-Reply-To
<7vaca31z50.fsf@assigned-by-dhcp.cox.net>
Dear Junio,
in message <7vaca31z50.fsf@assigned-by-dhcp.cox.net> you wrote:
> 
> I suspect there is no need to manufacture the tag.  Something
> like this should do.
Great! Thanks a lot.
> *WARNING* Since I do not do Porcelain, and I am not a Cogito
> user, this is obviously untested.  In addition, I am seriously
> drunk right now... 
Good enough. This one actually works:
> -- >8 --
> [PATCH] (cogito) Auto-follow lightweight tags as well.
--- a/cg-fetchG	2006-04-10 19:14:14.000000000 +0200
+++ b/cg-fetch	2006-04-30 14:35:03.000000000 +0200
@@ -211,7 +211,8 @@
 	git-ls-remote --tags "$uri" |
 		# SHA1 refs/tags/v0.99.8^{} --> SHA1 tags/v0.99.8
 		# where SHA1 is the object v0.99.8 tag points at.
-		sed -ne 's:\([^	]\)	refs/\(tags/.*\)^{}$:\1 \2:p' |
+		sed -n -e 's:\([^	]\)	refs/\(tags/.*\)^{}$:\1 \2:p' \
+		       -e 's:\([^	]\)	refs/\(tags/.*\)$:\1 \2:p' | \
 		while read sha1 tagname; do
 			# Do we have the tag itself?
 			[ -s "$_git/refs/$tagname" ] && continue


Best regards,

Wolfgang Denk
-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
It's hard to think of you as the end result of millions of  years  of
evolution.
Previous: Junio C HamanoNext: Wolfgang Denk
Message 8 of 9 in “cg-clone not fetching all tags?”
  1. Wolfgang DenkApr 27, 2006
  2. Wolfgang DenkApr 29, 2006
  3. Petr BaudisApr 29, 2006
  4. Johannes SixtApr 29, 2006
  5. Wolfgang DenkApr 29, 2006
  6. Johannes SixtApr 29, 2006
  7. Junio C HamanoApr 30, 2006
  8. Wolfgang DenkApr 30, 2006
  9. Wolfgang DenkApr 29, 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.