git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: "dirtbikersteve ." <stevemk14ebr@gmail.com>
To: git@vger.kernel.org
Subject: Git describe shows old tag
Date: Thu, 26 Sep 2019 16:46:13 -0400	[thread overview]
Message-ID: <CAN-=hvFX+tN_pQHPBxo0pA90N03dO7pxHVbD79Es22mx30TdxQ@mail.gmail.com> (raw)

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

                 reply	other threads:[~2019-09-26 20:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAN-=hvFX+tN_pQHPBxo0pA90N03dO7pxHVbD79Es22mx30TdxQ@mail.gmail.com' \
    --to=stevemk14ebr@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).