Skip to content

Commit

Permalink
controller and debugger version string uses long sha
Browse files Browse the repository at this point in the history
  • Loading branch information
martukas committed Jul 7, 2022
1 parent f69ed79 commit 46aef20
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@
def get_firmware_specifier_build_flag():
repo = git.Repo(search_parent_directories=True)
# TODO: contingency for detached heads, individual commits or some mid-rebase situations?
GitVersion = repo.git.describe("--tags")
GitVersion = repo.head.object.hexsha
# TODO: reintroduce semantic version info using repo.git.describe("--tags")
GitBranch = repo.active_branch.name
GitDirty = int(repo.is_dirty(untracked_files=True))
PioEnv = env["PIOENV"].upper()
Expand Down
3 changes: 2 additions & 1 deletion software/utils/debug/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def __init__(self, test_scenario):
self.start_time_utc = datetime.utcnow()
self.platform_uname = platform.uname()
repo = git.Repo(search_parent_directories=True)
self.git_version = repo.git.describe("--tags")
self.git_version = repo.head.object.hexsha
# TODO: reintroduce semantic version info using repo.git.describe("--tags")
self.git_branch = repo.active_branch.name
self.git_dirty = repo.is_dirty(untracked_files=True)
try:
Expand Down

0 comments on commit 46aef20

Please sign in to comment.