Fix git describe

This commit is contained in:
CrazyMax
2020-12-26 16:30:05 +01:00
parent bac4569e82
commit 8da37307ca

View File

@@ -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=""