mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 12:42:30 +04:00
adaptation to the new build system + fixes
This commit is contained in:
@@ -32,10 +32,10 @@ class GitVersion:
|
||||
|
||||
branch_num = self._exec_git("rev-list --count HEAD") or "n/a"
|
||||
|
||||
try:
|
||||
version = self._exec_git("describe --tags --abbrev=0 --exact-match")
|
||||
except subprocess.CalledProcessError:
|
||||
version = "unknown"
|
||||
version = (
|
||||
os.environ.get("DIST_SUFFIX", None)
|
||||
or "unknown"
|
||||
)
|
||||
|
||||
return {
|
||||
"GIT_COMMIT": commit,
|
||||
|
||||
Reference in New Issue
Block a user