|
@@ -170,11 +170,11 @@ get_version() {
|
170
|
170
|
then # we are in git repo... so we can get smart
|
171
|
171
|
local lasttag=$(git tag | grep ^v | sort -V | tail -n1)
|
172
|
172
|
if ! git describe --tags --exact-match HEAD >&/dev/null;
|
173
|
|
- then # we are not at later commit than the last tag
|
|
173
|
+ then # we are at a later commit than the last tag
|
174
|
174
|
local sha=g$(git log -1 --pretty=format:%h HEAD)
|
175
|
175
|
fi
|
176
|
176
|
if test "$(git diff --shortstat 2>/dev/null)" != "";
|
177
|
|
- then # thr tree is "dirty", i.e. has been edited
|
|
177
|
+ then # the tree is "dirty", i.e. has been edited
|
178
|
178
|
local dirty=dirty
|
179
|
179
|
fi
|
180
|
180
|
version=${lasttag:1}
|