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

Re: Kernel nightly snapshots..

From
Linus Torvalds <torvalds@osdl.org>
Date
May 5, 2005, 15:46 UTC
Message-ID
<Pine.LNX.4.58.0505050834550.2328@ppc970.osdl.org>
In-Reply-To
<1115305813.16187.143.camel@hades.cambridge.redhat.com>
On Thu, 5 May 2005, David Woodhouse wrote:
Show 6 quoted lines
> 
> OK, I've changed my 'origin' to an rsync URL referring to the same
> place, to make sure I get tags correctly in future. 2.6.12-rc3-git1 is
> in the process of being built; if the attached script works and
> continues working when invoked from cron, we might even see nightly
> snapshots again as requested...
	RELNAME=`cg-tag-ls | grep -v 'git' | tail -n1 | cut -f1 | sed s/^v//`

this seems to assume that cg-tag-ls outputs things in the right order, which I'm not at all sure it does.

It looks like cg-tag-ls just does
	cd .git/refs/tags
	for tag in *; do
		...

which means that the ordering will depend on the shell ordering or globbing.

Bash does globbing alphabetically sorted (and documents that), and it's quite possible that all other shells do too. Even so, that doesn't actually mean that it would be sorted by release, since v2.6.2 will sort _after_ v2.6.12.

So this _should_ work for a while, but will eventually (before a -rc10 happens or we get to v2.6.100 ;^) need something better. That something better probably being to ignore any tags that don't point to commits, and then sorting by the date of the commit object.

		Linus
Previous: Russell KingNext: David Woodhouse
Message 17 of 18 in “Kernel nightly snapshots..”
  1. Linus TorvaldsMay 5, 2005
  2. H. Peter AnvinMay 5, 2005
  3. David WoodhouseMay 5, 2005
  4. Linus TorvaldsMay 5, 2005
  5. David WoodhouseMay 5, 2005
  6. David WoodhouseMay 5, 2005
  7. Linus TorvaldsMay 5, 2005
  8. David WoodhouseMay 7, 2005
  9. H. Peter AnvinMay 6, 2005
  10. David WoodhouseMay 6, 2005
  11. H. Peter AnvinMay 6, 2005
  12. Marcelo TosattiMay 6, 2005
  13. Thomas GlanzmannMay 22, 2005
  14. David WoodhouseMay 22, 2005
  15. Thomas GlanzmannMay 22, 2005
  16. Russell KingMay 22, 2005
  17. Linus TorvaldsMay 5, 2005
  18. David WoodhouseMay 6, 2005

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.