From 8da37307ca2b6407d23d6c60ef8453a1d64c085d Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sat, 26 Dec 2020 16:30:05 +0100 Subject: [PATCH] Fix git describe --- hack/goreleaser.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/hack/goreleaser.sh b/hack/goreleaser.sh index 01ab09b2..4fa7cf82 100755 --- a/hack/goreleaser.sh +++ b/hack/goreleaser.sh @@ -136,7 +136,7 @@ EOL gitTag="" case "$GIT_REF" in refs/tags/v*) - gitTag="${GIT_REF#refs/tags/v}" + gitTag="${GIT_REF#refs/tags/}" export GORELEASER_CURRENT_TAG=$gitTag ;; *) @@ -153,9 +153,6 @@ gitDirty="true" if git describe --exact-match --tags --match "$gitTag" >/dev/null 2>&1; then gitDirty="false" fi -if [ -n "$GORELEASER_CURRENT_TAG" ]; then - gitDirty="false" -fi echo "git dirty: ${gitDirty}" flags=""