Skip to content

Commit

Permalink
Fix error on missing tag
Browse files Browse the repository at this point in the history
  • Loading branch information
riban committed Dec 26, 2024
1 parent f1ace9b commit e25d1c3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions zynconf/zynthian_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,10 +291,19 @@ def get_git_version_info(path):
patch_version = z
except:
pass
if tag:
if tag == stable_tag:
display_name = f"{tag}.{minor_version}.{patch_version}"
else:
display_name = tag
else:
display_name = branch

result = {
"branch": branch,
"tag": tag,
"name": release_name,
"display_name": display_name,
"major": major_version,
"minor": minor_version,
"patch": patch_version,
Expand Down

0 comments on commit e25d1c3

Please sign in to comment.