Skip to content

Commit c76e71d

Browse files
fixed tag retrieval
1 parent efed9c7 commit c76e71d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/git-ver.bashlib

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ get_tag() {
5757
if [[ "$GIT_VER_REPO_LATEST_TAG" == "" ]]; then
5858
local my_branch="$(get_branch_name)"
5959
local my_suffix="$(get_suffix_from_branch_name $my_branch)"
60-
tag="$(git name-rev $my_branch --name-only --refs=v*$my_suffix* | sed -s 's/undefined//g')"
60+
tag="$(git describe --abbrev=0 --tags --match v*alpha* | sed -s 's/fatal\: No names found, cannot describe anything\.//g')"
6161
else
6262
tag=$GIT_VER_REPO_LATEST_TAG
6363
fi

0 commit comments

Comments
 (0)