|
@@ -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)
|