Skip to content

Fix for show_tag=last - #39

Open
mryalamanchi wants to merge 2 commits into
jaspernbrouwer:masterfrom
mryalamanchi:master
Open

Fix for show_tag=last#39
mryalamanchi wants to merge 2 commits into
jaspernbrouwer:masterfrom
mryalamanchi:master

Conversation

@mryalamanchi

Copy link
Copy Markdown

Using git describe --tags doesn't ultimately give the latest tag that was created. Therefore git rev-list --tags --max-count=1 was used to grab the hash of the latest tag and then supply the hash to git describe --tags HASH_VALUE

A quick dry-run on shell:

  1. Get to the root of any directory initialized with git.
  2. git describe --tags $(git rev-list --tags --max-count=1)

mryalamanchi and others added 2 commits October 10, 2020 12:50
 Using v1.3.1-5-g1f3e047 doesn't ultimately gives the latest tag that was created. Therefore *git rev-list --tags --max-count=1* was used to grab the hash of the latest tag and then supply the hash to *git describe --tags HASH_VALUE*
Resolved for exception tag=tag[0] where there are no tags
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant