Skip to content

Commit

Permalink
feat(manager): attempt to reset to r2++
Browse files Browse the repository at this point in the history
  • Loading branch information
jamcar23 authored and jamcar23 committed Sep 3, 2020
1 parent fe98dcd commit 1fd3bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ def main():
if exit_status == 'reset':
for _ in range(2):
try:
subprocess.check_output(["git", "add", "-A", "&&", "git", "stash"], cwd=BASEDIR)
subprocess.check_output(["git", "fetch"], cwd=BASEDIR)
subprocess.check_output(["git", "checkout", "r2++"], cwd=BASEDIR)
subprocess.check_output(["git", "reset", "--hard", "@{u}"], cwd=BASEDIR)
subprocess.check_output(["git", "checkout", "r2+"], cwd=BASEDIR)
print('git reset successful!')
Expand Down

0 comments on commit 1fd3bee

Please sign in to comment.