Fix revision calculation
This commit is contained in:
parent
25f02dd9b9
commit
3aa1e3c436
3
refine
3
refine
@ -211,7 +211,8 @@ get_revision() {
|
|||||||
REVISION=`echo $INFO | sed s/^$VERSION-//`
|
REVISION=`echo $INFO | sed s/^$VERSION-//`
|
||||||
elif [ -d ".git" ] ; then
|
elif [ -d ".git" ] ; then
|
||||||
INFO=`git describe`
|
INFO=`git describe`
|
||||||
REVISION=${`echo $INFO`:3}
|
REVISION=`echo $INFO`
|
||||||
|
REVISION=${REVISION:4}
|
||||||
else
|
else
|
||||||
error "cannot obtain revision, exiting!"
|
error "cannot obtain revision, exiting!"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user