scmversion: Use annotated tag as base
This commit is contained in:
1 parent
61a5efe62b
commit
706dc86a94
4 files changed
+5
-5
No files matched your search
@@ -17,7 +17,7 @@ GIT_VERSION=$(git tag --points-at HEAD)
|
||||
GIT_HASH=$(git rev-parse HEAD)
|
||||
|
||||
if [[ "${GIT_VERSION}" == "" ]]; then
|
||||
GIT_VERSION=$(git describe --tags --dirty --exclude latest --exclude preview --exclude legacy --exclude previous-latest | tr -d '\r\n')
|
||||
GIT_VERSION=$(git describe --dirty | tr -d '\r\n')
|
||||
if [[ "${GIT_VERSION}" == "" ]]; then
|
||||
GIT_VERSION=$(git rev-parse HEAD)
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user