diff --git a/resources/scripts/.travis-install-linux.sh b/resources/scripts/.travis-install-linux.sh index a6dc9ab61..e5d8bc4b0 100755 --- a/resources/scripts/.travis-install-linux.sh +++ b/resources/scripts/.travis-install-linux.sh @@ -28,7 +28,7 @@ set -- R*.AppImage rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi imagename="$1" -git_tag=$(git describe --abbrev=0) +git_tag=$(git describe --tags `git rev-list --tags --max-count=1`) git_revision=$(git rev-parse --short HEAD) if [ "$USE_WEBENGINE" = true ]; then diff --git a/resources/scripts/.travis-install-osx.sh b/resources/scripts/.travis-install-osx.sh index 1c8cd0226..eb563e919 100755 --- a/resources/scripts/.travis-install-osx.sh +++ b/resources/scripts/.travis-install-osx.sh @@ -19,7 +19,7 @@ set -- *.dmg rc=$?; if [[ $rc != 0 ]]; then exit $rc; fi dmgname="$1" -git_tag=$(git describe --abbrev=0) +git_tag=$(git describe --tags `git rev-list --tags --max-count=1`) git_revision=$(git rev-parse --short HEAD) if [ "$USE_WEBENGINE" = true ]; then