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

Re: Retrieve version-string on shallow clone

From
Giuseppe Crinò <giuscri@gmail.com>
Date
Sep 2, 2019, 14:08 UTC
Message-ID
<20190902140854.GA3806@instance-1.europe-west6-a.c.vaulted-journal-250706.internal>
> I'd figure one of these options would be to clone everything from tag
> v2.0.0 onward, but if so how would I do that?
> As another option I was thinking; maybe it's possible to do git describe
> --tags on the remote repo?
To my understanding both questions are solved by
* https://stackoverflow.com/a/47720414/2219670
* https://stackoverflow.com/a/12704727/2219670
It seems to me that's the expected behaviour of git
-Giuseppe
Next: Reino Wijnsma
Message 1 of 2 in “Re: Retrieve version-string on shallow clone”
  1. Giuseppe CrinòSep 2, 2019
  2. Reino WijnsmaSep 3, 2019

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.