Skip to content

Commit

Permalink
tools/helper: ensure version_info is defined (#1401)
Browse files Browse the repository at this point in the history
  • Loading branch information
goneri authored Jun 21, 2024
1 parent 819208d commit d707c58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/helper
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def cli():
logging.debug("git describe returned: %s", git_tag)
tag, commits_since, suffix = git_tag.split("-", 2)
version = tag[1:]
version_info = [int(x) for x in version.split(".")]
if "-dirty" in suffix or commits_since != "0":
pre_release = True
if pre_release:
version_info = [int(x) for x in version.split(".")]
if len(version_info) == 2:
version_info.append(0)
if len(version_info) != 3:
Expand Down

0 comments on commit d707c58

Please sign in to comment.