Do not fail when the current git checkout does not provide tags
@@ -7,7 +7,7 @@ test -n "${XTRACE}" && set -o xtrace
set -o errexit -o nounset
GIT_ROOT=${GIT_ROOT:-$(git rev-parse --show-toplevel)}
-GIT_DESCRIBE=${GIT_DESCRIBE:-$(git describe --tags --long)}
+GIT_DESCRIBE=${GIT_DESCRIBE:-$(git describe --tags --long || (git tag -a v0.0.0 -m "tag v0.0.0"; git describe --tags --long))}
GIT_BRANCH=${GIT_BRANCH:-$(git name-rev --name-only HEAD)}
GIT_COMMITS=${GIT_COMMITS:-$(echo ${GIT_DESCRIBE} | awk -F - '{ print $2 }' )}
