Commit 5f1c347f authored by Franco Fichtner's avatar Franco Fichtner

live mount: fix version advertise

parent da377461
...@@ -29,9 +29,10 @@ set -e ...@@ -29,9 +29,10 @@ set -e
VERSION=$(git describe --abbrev=0 --always) VERSION=$(git describe --abbrev=0 --always)
REVISION=$(git rev-list ${VERSION}.. --count) REVISION=$(git rev-list ${VERSION}.. --count)
COMMENT=$(git rev-list HEAD --max-count=1 | cut -c1-9)
if [ "${REVISION}" != "0" ]; then if [ "${REVISION}" != "0" ]; then
# must construct full version string manually # must construct full version string manually
VERSION=${VERSION}_${REVISION} VERSION=${VERSION}_${REVISION}
fi fi
echo ${VERSION} echo ${VERSION}-${COMMENT}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment