build-utils/dist.sh: remove "-dirty" suffix (#2074)

Calling `make dist` on a dirty tree caused an error when trying to use
`git log` with the `-dirty` suffix.

This patch removes any "-dirty" suffix from the argument.

[ci skip]
This commit is contained in:
Daniel Hahler 2017-10-22 16:34:04 +02:00 committed by GitHub
parent f3baf499aa
commit 288b7030f3
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ if [ -z "$1" ]; then
exit 64 exit 64
fi fi
GIT_TAG="$1" GIT_TAG="${1%-dirty}"
SVERSION=$(echo "$GIT_TAG" | sed 's/^v//') SVERSION=$(echo "$GIT_TAG" | sed 's/^v//')
date=$(git log -1 --format=%cI "$GIT_TAG") date=$(git log -1 --format=%cI "$GIT_TAG")