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

pull/23227/head
Adeeb Shihadeh 2021-12-14 22:35:18 -08:00 committed by GitHub
parent 2483fc5d5d
commit 13b4ff504d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 9 deletions

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)