Преглед изворни кода

Fix pipe determining the last tag

Alois Mahdal пре 9 година
родитељ
комит
77b3e95a81
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      setup/mk.sh

+ 1
- 1
setup/mk.sh Прегледај датотеку

@@ -127,7 +127,7 @@ get_version() {
127 127
     local stage=$STAGE
128 128
     if git rev-parse HEAD >&/dev/null;
129 129
     then    # we are in git repo... so we can get smart
130
-        local lasttag=$(git tag | grep ^v | tail -n1)
130
+        local lasttag=$(git tag | grep ^v | sort -V | tail -n1)
131 131
         if ! git describe --tags --exact-match HEAD >&/dev/null;
132 132
         then    # we are not at later commit than the last tag
133 133
             local sha=g$(git describe --always HEAD)