mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 03:52:11 +08:00
manager.py: fix git commit param write outside of git repo
old-commit-hash: 01c5d7f7eddeaa19c5c776cb96a713689a3d92dd
This commit is contained in:
@@ -18,7 +18,7 @@ from selfdrive.manager.process import ensure_running
|
||||
from selfdrive.manager.process_config import managed_processes
|
||||
from selfdrive.registration import register
|
||||
from selfdrive.swaglog import cloudlog, add_file_handler
|
||||
from selfdrive.version import dirty, version, origin, branch, commit, \
|
||||
from selfdrive.version import dirty, get_git_commit, version, origin, branch, commit, \
|
||||
terms_version, training_version, \
|
||||
get_git_branch, get_git_remote
|
||||
|
||||
@@ -69,7 +69,7 @@ def manager_init():
|
||||
params.put("Version", version)
|
||||
params.put("TermsVersion", terms_version)
|
||||
params.put("TrainingVersion", training_version)
|
||||
params.put("GitCommit", commit)
|
||||
params.put("GitCommit", get_git_commit(default=""))
|
||||
params.put("GitBranch", get_git_branch(default=""))
|
||||
params.put("GitRemote", get_git_remote(default=""))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user