Skip to content

Commit

Permalink
int
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl committed Jul 21, 2024
1 parent 7cddcbc commit aa0e710
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/build-modify-extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
version_repo = next((tag for tag in repo.tags if tag.commit == repo.head.commit), repo.head.commit)
if type(version_repo) == Commit:
# first 8 characters of commit added to '0.0.' to get a SemVer version number
version = f'0.0.{version_repo.hexsha[0:8]}'
version = f'0.0.{int(version_repo.hexsha[0:8], 16)}'
elif type(version_repo) == TagReference:
# Tag
version = version_repo.name
Expand Down

0 comments on commit aa0e710

Please sign in to comment.