Skip to content

Commit

Permalink
selfdrive/version: remove one unnecessary write to .git/ (commaai#23183)
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh authored Dec 15, 2021
1 parent 2483fc5 commit 13b4ff5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions selfdrive/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 13b4ff5

Please sign in to comment.