selfdrive/version: remove one unnecessary write to .git/ (#23183)

This commit is contained in:
Adeeb Shihadeh
2021-12-14 22:35:18 -08:00
committed by GitHub
parent 2483fc5d5d
commit 13b4ff504d
-9
View File
@@ -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)