There was an error while loading. Please reload this page.
1 parent efed9c7 commit c76e71dCopy full SHA for c76e71d
src/git-ver.bashlib
@@ -57,7 +57,7 @@ get_tag() {
57
if [[ "$GIT_VER_REPO_LATEST_TAG" == "" ]]; then
58
local my_branch="$(get_branch_name)"
59
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')"
+ tag="$(git describe --abbrev=0 --tags --match v*alpha* | sed -s 's/fatal\: No names found, cannot describe anything\.//g')"
61
else
62
tag=$GIT_VER_REPO_LATEST_TAG
63
fi
0 commit comments