diff --git a/selfdrive/version.py b/selfdrive/version.py index 9ce31ddbe8..4fec0b4cc7 100644 --- a/selfdrive/version.py +++ b/selfdrive/version.py @@ -34,7 +34,7 @@ def get_git_remote(default=None): tracking_remote = run_cmd(["git", "config", "branch." + local_branch + ".remote"]) return run_cmd(["git", "config", "remote." + tracking_remote + ".url"]) except subprocess.CalledProcessError: # Not on a branch, fallback - run_cmd_default(["git", "config", "--get", "remote.origin.url"], default=default) + return run_cmd_default(["git", "config", "--get", "remote.origin.url"], default=default) with open(os.path.join(os.path.dirname(os.path.abspath(__file__)), "common", "version.h")) as _versionf: