From dff8e1310d0302a86270424dc47b5da5bb937bf6 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 20 Jul 2020 13:59:10 -0700 Subject: [PATCH] fix tested branch detection old-commit-hash: ede5b632b58c55e4ff003f948efae07fe03c2280 --- selfdrive/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/version.py b/selfdrive/version.py index 02416a90a0a323..0999e7511d20c6 100644 --- a/selfdrive/version.py +++ b/selfdrive/version.py @@ -60,7 +60,7 @@ def get_git_remote(default=None): 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') - tested_branch = branch in ['devel', 'release2-staging', 'dashcam-staging', 'release2', 'dashcam'] + tested_branch = get_git_branch() in ['devel', 'release2-staging', 'dashcam-staging', 'release2', 'dashcam'] dirty = not comma_remote dirty = dirty or ('master' in branch)