Fix git describe call due to detached HEAD.

This commit is contained in:
Martin Rotter 2020-05-04 07:30:31 +02:00
parent 970cd17874
commit 3d2abecc67
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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