From 288b7030f3d7706b94ef6951587f84b33a89e42d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 22 Oct 2017 16:34:04 +0200 Subject: [PATCH] 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] --- build-utils/dist.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-utils/dist.sh b/build-utils/dist.sh index 8fdf3c8d..078cada4 100755 --- a/build-utils/dist.sh +++ b/build-utils/dist.sh @@ -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")