1
0
mirror of https://github.com/nophead/NopSCADlib.git synced 2025-08-06 07:27:23 +02:00

Fixed changelog.py for when HEAD doesn't have tag.

This commit is contained in:
Chris Palmer
2021-03-03 13:51:22 +00:00
parent a93a8f99fb
commit 4a2951e22f
2 changed files with 3 additions and 2 deletions

View File

@@ -131,8 +131,7 @@ if __name__ == '__main__':
# Convert version tag to tuple
if commit.tag:
match = re.match(r'.*tag: v([0-9]+)\.([0-9]+)\.([0-9]+).*', commit.tag)
assert(match)
commit.tag = (int(match.group(1)), int(match.group(2)), int(match.group(3)))
commit.tag = (int(match.group(1)), int(match.group(2)), int(match.group(3))) if match else ''
commits.append(commit)
# Format the results from the Commit objects