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

old-commit-hash: 13b4ff504d
commatwo_master
Adeeb Shihadeh 3 years ago committed by GitHub
parent 1fc1819c2b
commit 5e37ac43be
  1. 9
      selfdrive/version.py

@ -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…
Cancel
Save