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:
parent
f3baf499aa
commit
288b7030f3
|
@ -9,7 +9,7 @@ if [ -z "$1" ]; then
|
|||
exit 64
|
||||
fi
|
||||
|
||||
GIT_TAG="$1"
|
||||
GIT_TAG="${1%-dirty}"
|
||||
SVERSION=$(echo "$GIT_TAG" | sed 's/^v//')
|
||||
|
||||
date=$(git log -1 --format=%cI "$GIT_TAG")
|
||||
|
|
Loading…
Reference in New Issue