git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Git describe shows old tag
@ 2019-09-26 20:46 dirtbikersteve .
  0 siblings, 0 replies; only message in thread
From: dirtbikersteve . @ 2019-09-26 20:46 UTC (permalink / raw)
  To: git

I believe there is a bug in git describe. When using the command `git
describe –tags` an old tag version was returned. The repo had a
lightweight tag at v0.6.1, which was correctly shown by `git tag` but
did not get returned by `git describe –tags` OR `git describe –all`.
The command `git for-each-ref --format="%(refname:short)"
--sort=-authordate --count=1 refs/tags` worked correctly. Console
logs:

λ git tag
v0.1.0
v0.1.1
v0.1.10
v0.1.11
v0.1.12
v0.1.13
v0.1.14
v0.1.15
v0.1.16
v0.1.17
v0.1.18
v0.1.2
v0.1.3
v0.1.4
v0.1.5
v0.1.6
v0.1.7
v0.1.8
v0.1.9
v0.2.0
v0.2.1
v0.2.2
v0.2.3
v0.2.4
v0.2.5
v0.2.7
v0.2.8
v0.2.9
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4
v0.4.0
v0.4.1
v0.4.9
v0.5.0
v0.5.1
v0.5.10
v0.5.11
v0.5.12
v0.5.13
v0.5.14
v0.5.15
v0.5.16
v0.5.17
v0.5.18
v0.5.19
v0.5.2
v0.5.20
v0.5.21
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.5.7
v0.5.8
v0.5.9
v0.6
v0.6.1

λ git describe --all
tags/v0.5.20

λ git describe --all --debug
describe HEAD
tags/v0.5.20

λ git describe --all --debug
describe HEAD
tags/v0.5.20

λ git for-each-ref --format="%(refname:short)" --sort=-authordate
--count=1 refs/tags
v0.6.1

-Stephen Eckels

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-09-26 20:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-26 20:46 Git describe shows old tag dirtbikersteve .

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).