Merge pull request #386 from oliv3r/dev/fix_version_tag

version: Do not put a slash in the version tag
This commit is contained in:
Yves Rutschle 2023-07-30 23:12:32 +02:00 committed by GitHub
commit 4cbff962db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ fi
if [ -d .git ] && head=`git rev-parse --verify HEAD 2>/dev/null`; then
# generate the version info based on the tag
release=`(git describe --tags || git --describe || git describe --all --long) \
2>/dev/null | tr -d '\n'`
2>/dev/null | tr -s '/' '-' | tr -d '\n'`
# Are there uncommitted changes?
git update-index --refresh --unmerged > /dev/null