Skip to content

Commit

Permalink
Merge pull request #23 from skarev/master
Browse files Browse the repository at this point in the history
Improve tags sorting
  • Loading branch information
franiglesias authored Sep 20, 2021
2 parents 27ca609 + 0622e1e commit dd82976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versiontag
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ function showCurrentVersion() {
# Get the last tag and breaks into parts

function getLastTag() {
lasttag=`git tag | sort -r | grep "^v[0-9]*\.[0-9]*\.[0-9]" | head -1 2> /dev/null` || true
lasttag=`git tag -l --sort=-committerdate | head -1 2> /dev/null` || true

if [[ -z "$lasttag" ]]; then
lasttag='v0.0.0'
Expand Down

0 comments on commit dd82976

Please sign in to comment.