if [ ! -z "$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" ]; then
if $(git rev-parse --abbrev-ref HEAD | grep -q 'rel/'); then
REL_TYPE="$(git rev-parse --abbrev-ref HEAD | cut -d/ -f 2 | cut -d- -f 1)"
- VERSION="$(git describe --match=${REL_TYPE}-* --dirty=.dirty | cut -d- -f 2-)"
+ VERSION="$(git describe --match=${REL_TYPE}-* --tags --dirty=.dirty | cut -d- -f 2-)"
else
GIT_VERSION=$(git show --no-patch --format=format:%h HEAD)
BRANCH=".$(git rev-parse --abbrev-ref HEAD | perl -p -e 's/-//g;')"