Skip to content

Commit

Permalink
* Fixed creating the version on a clean release. (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
joncage authored Sep 20, 2020
1 parent a625bc6 commit 3072389
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Installer/create_version_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,13 @@ def extract_version_parts(git_response):
groups = list(matches)[0].groups()
if len(groups) > 3:
commits_since_tag = groups[3]
if groups[3]:
commits_since_tag = groups[3]
else:
commits_since_tag = '0'
commit_sha = groups[4]
else:
commits_since_tag = 0
commits_since_tag = '0'
commit_sha = None
four_part_version = list(groups[0:3]) + [commits_since_tag]

Expand Down

0 comments on commit 3072389

Please sign in to comment.