selfdrive/version: remove one unnecessary write to .git/ (#23183)
parent
2483fc5d5d
commit
13b4ff504d
|
@ -98,15 +98,6 @@ def is_dirty() -> bool:
|
|||
|
||||
dirty = (subprocess.call(["git", "diff-index", "--quiet", branch, "--"]) != 0)
|
||||
|
||||
# Log dirty files
|
||||
if dirty and is_comma_remote():
|
||||
try:
|
||||
dirty_files = run_cmd(["git", "diff-index", branch, "--"])
|
||||
cloudlog.event("dirty comma branch", version=get_version(), dirty=dirty, origin=origin, branch=branch,
|
||||
dirty_files=dirty_files, commit=get_commit(), origin_commit=get_commit(branch))
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
|
||||
dirty = dirty or (not is_comma_remote())
|
||||
dirty = dirty or ('master' in branch)
|
||||
|
||||
|
|
Loading…
Reference in New Issue