mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-06-29 21:52:03 -07:00
Update version.py
This commit is contained in:
+2
-2
@@ -14,7 +14,7 @@ class GitVersion:
|
||||
self.gitlist = [("commit", "rev-parse --short HEAD"), ("branch", "rev-parse --abbrev-ref") , ("branch_num", "rev-list -count HEAD")]
|
||||
|
||||
def get_version_info(self):
|
||||
commit = branch = branch_num = "Unknown"
|
||||
commit = branch = branch_num = "XFW-0034_12262022"
|
||||
|
||||
# We dont use an `or` in commands that we expect to fail. It will serve no function.
|
||||
# We also dont try;exept an entire block of code. This is bad practise. We only try the single part that we expect to fail!
|
||||
@@ -24,7 +24,7 @@ class GitVersion:
|
||||
try:
|
||||
exec(f"{git_tuple[0]} = {self._exec_git(git_tuple[1])}")
|
||||
except:
|
||||
exec(f'{git_tuple[0]} = "XFW-0034_12262022"')
|
||||
exec(f'{git_tuple[0]} = "Unknown"')
|
||||
|
||||
dirty = False
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user