Skip to content

Commit

Permalink
fix tested branch detection
Browse files Browse the repository at this point in the history
old-commit-hash: ede5b63
  • Loading branch information
adeebshihadeh committed Jul 20, 2020
1 parent 0fe01be commit dff8e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get_git_remote(default=None):

if (origin is not None) and (branch is not None):
comma_remote = origin.startswith('[email protected]: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)
Expand Down

0 comments on commit dff8e13

Please sign in to comment.