Skip to content

Commit

Permalink
Strip off git tag v prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fizzadar committed Dec 13, 2021
1 parent e51bdb3 commit 5ce8446
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions make/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,11 @@ def create_github_release(version):


def get_release_version():
return (
git_tag = (
check_output(('git', 'tag', '--points-at', 'HEAD'))
.decode()
.strip()
) or None
)
if git_tag:
# Strip off the vX.YZ...
return git_tag[1:]

0 comments on commit 5ce8446

Please sign in to comment.