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:
@@ -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
|
||||
|
Reference in New Issue
Block a user