fix: fix compiler error if not git repo

This commit is contained in:
ZanzyTHEbar 2023-02-27 09:55:15 +00:00
parent 58d0f26602
commit 3ca047f07d

View File

@ -7,7 +7,7 @@ project = project.split("/")
project = project[len(project)-1]
# Get 0.0.0 version from latest Git tag
tagcmd = "git describe --tags --abbrev=0"
tagcmd = "git describe --tags --always --abbrev=0"
version = subprocess.check_output(tagcmd, shell=True).decode().strip()
# Get latest commit short from Git