mirror of
https://github.com/EyeTrackVR/OpenIris.git
synced 2025-11-04 15:39:42 +08:00
fix: fix compiler error if not git repo
This commit is contained in:
parent
58d0f26602
commit
3ca047f07d
@ -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
|
||||
@ -22,4 +22,4 @@ branch = subprocess.check_output(branchcmd, shell=True).decode().strip()
|
||||
print("-DPIO_SRC_NAM={0}".format(project))
|
||||
print("-DPIO_SRC_TAG={0}".format(version))
|
||||
print("-DPIO_SRC_REV={0}".format(commit))
|
||||
print("-DPIO_SRC_BRH={0}".format(branch))
|
||||
print("-DPIO_SRC_BRH={0}".format(branch))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user