Skip to content

Commit

Permalink
Fix git describe
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed Dec 26, 2020
1 parent bac4569 commit 8da3730
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions hack/goreleaser.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;
*)
Expand All @@ -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=""
Expand Down

0 comments on commit 8da3730

Please sign in to comment.