1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

Force no dirty build status for multiple builds

kostili and velosipedy
This commit is contained in:
MX
2022-12-29 01:41:23 +03:00
parent 984528d366
commit a850aa8f2c
3 changed files with 13 additions and 0 deletions

View File

@@ -42,6 +42,13 @@ class GitVersion:
or ""
)
force_no_dirty = (
os.environ.get("FORCE_NO_DIRTY", None)
or ""
)
if (force_no_dirty != ""):
dirty = False
if (custom_fz_name != "") and (len(custom_fz_name) <= 8) and (custom_fz_name.isalnum()) and (custom_fz_name.isascii()):
return {
"GIT_COMMIT": commit,