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 --abbrev=0 shows wrong tag

See original GitHub issue

Something looks wrong with git describe --abbrev=0 I use this

  - name: Checkout
    uses: actions/checkout@v2.2.0
    with:
      fetch-depth: 0

and I even do a git fetch --all Please see here

to grab latest git tag. This is an example with wrong output

Local on my machine I see with git tag -n

1.0.6.13 Attempt to fix git tag 1.0.6.14 1.0.6.14 1.0.6.15 1.0.6.15 1.0.6.16 1.0.6.16 1.0.6.17 1.0.6.17

but on Github CI

1.0.6.13 Attempt to fix git tag 1.0.6.14 1.0.6.14 1.0.6.15 1.0.6.15 1.0.6.16 1.0.6.16 1.0.6.17 Revert “remove Travis”

Local on my machine I see with git log --oneline

881b9db (HEAD -> refs/heads/LogActivity, tag: refs/tags/1.0.6.17, refs/remotes/origin/LogActivity) Revert “remove Travis” 99dddbb (tag: refs/tags/1.0.6.15, tag: refs/tags/1.0.6.14) Attempt to fix release tag 27612c5 (tag: refs/tags/1.0.6.13) Attempt to fix release tag c3bcdb8 (tag: refs/tags/1.0.6.12) Attempt to fix release tag 3c7ce1d (tag: refs/tags/1.0.6.11) LogActivity

on Github CI the output is this. At least the current commit is right 👍

881b9db Revert “remove Travis” 99dddbb Attempt to fix release tag 27612c5 Attempt to fix release tag c3bcdb8 Attempt to fix release tag 3c7ce1d LogActivity

Local on my machine I see with git describe --abbrev=0

1.0.6.17

on Github CI the output is this

1.0.6.15

I verify the same command with Travis, and there it looks (expected) like my local machine.

Has someone an idea what’s wrong here ?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

5reactions
hannesa2commented, Jul 1, 2020
    uses: actions/checkout@v2.3.1
    with:
      submodules: true
      fetch-depth: 0

Still shows wrong tag with git describe --abbrev=0

https://github.com/hannesa2/owncloud-android/pull/5/checks?check_run_id=825271697

It shows me 2.15.0.1 instead of 2.15.0.2. Local it shows me 2.15.0.2 image

image
2reactions
Stanzillacommented, Aug 13, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

git describe --abbrev=0 --tags gives incorrect output
It seens that the ABC747T144RC9_REL_7_64_131 tag was not correctly created. To verify execute: git show ABC747T144RC9_REL_7_64_131.
Read more >
git-describe Documentation - Git
By default (without --all or --tags) git describe only shows annotated tags. ... With --abbrev set to 0, the command can be used...
Read more >
git describe --abbrev=0 --tags gives incorrect output
I have the following in git log when I run the command git describe --abbrev=0 --tags the output is ABC759T5RC9_REL_7_63_78.
Read more >
git-describe - Give an object a human readable name based ...
By default (without --all or --tags) git describe only shows annotated tags. For more information about creating annotated tags see the -a and...
Read more >
Unexpected `git describe` result in detached CI logs ... - GitLab
tag a commit on the master branch and push it to GitLab (eg. ... The results of git describe --always --tags --dirty are...
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