From c770f541033ad8f755950fd573bf5f43710f03e3 Mon Sep 17 00:00:00 2001 From: Willem Melching Date: Mon, 3 Feb 2020 15:12:59 -0800 Subject: [PATCH] Fix dirty files reporting --- selfdrive/version.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selfdrive/version.py b/selfdrive/version.py index 0f98abfd7f..77dc266687 100644 --- a/selfdrive/version.py +++ b/selfdrive/version.py @@ -51,7 +51,10 @@ branch = get_git_full_branchname() try: # This is needed otherwise touched files might show up as modified - subprocess.check_call(["git", "update-index", "--refresh"]) + try: + subprocess.check_call(["git", "update-index", "--refresh"]) + except subprocess.CalledProcessError: + pass if (origin is not None) and (branch is not None): comma_remote = origin.startswith('git@github.com:commaai') or origin.startswith('https://github.com/commaai')