question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"git describe" not reading proper tagged release

See original GitHub issue

Found this out in another package. It turns out that when a release is tagged using GitHub’s web interface, it does not play well with “git describe” command. The current workaround is to tag it using “git” command line, push the tag out, and then insert release notes after-the-fact.

$ git tag
v2.6.0
v2.6.1
v2.6.2
v2.6.3

$ git show-ref --tags -d
3dd9d68ababac85c90b600d9c4eddc2d23517c99 refs/tags/v2.6.0
47a85a1a5a1bd436c3a8161a459759139b9f7861 refs/tags/v2.6.1
c29f9214828ede13675210cb649977b306f2d5d2 refs/tags/v2.6.2
647c6550ad3979a1cc15e9e48dc220dfa8941f53 refs/tags/v2.6.3

$ git describe
fatal: No annotated tags can describe 'a9943ebfb868e53bdb5d897db05617b06de282ba'.
However, there were unannotated tags: try --tags.

$ git describe --tags
v2.6.3-59-ga9943eb

c/c @jhunkeler

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ejeschkecommented, Jun 7, 2017

Release v2.6.4 made.

$ git describe
v2.6.4-1-g42dc5aa
1reaction
pllimcommented, Jun 7, 2017

add release notes after the fact

Yes, it should be.

  1. Go to “releases”.
  2. Click on the tag you just pushed out.
  3. Click “Edit tag” button on top right.
Read more comments on GitHub >

github_iconTop Results From Across the Web

"git describe" ignores a tag - Stack Overflow
So in my case, the developers decided to create a new release branch exclusively for tagging releases which results that the develop branch...
Read more >
git-describe Documentation - Git
The command finds the most recent tag that is reachable from a commit. If the tag points to the commit, then only the...
Read more >
Proper use of Git tags - Dan Aloni
The git describe command can relate any commit to tags in the history. ... Pick good tag names that do not cause ambiguity...
Read more >
git tag | Atlassian Git Tutorial
Tagging is generally used to capture a point in history that is used for a marked version release (i.e. v1.0.1). A tag is...
Read more >
How To List Git Tags - devconnected
In order to find the latest Git tag available on your repository, you have to use the “git describe” command with the “–tags”...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found