mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-27 23:46:31 +01:00
Fix git describe
This commit is contained in:
@@ -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=""
|
||||
|
||||
Reference in New Issue
Block a user