installer: add reset to make sure latest is checked out if branch doesnt change

albatross
Willem Melching 2020-01-19 10:01:11 -08:00
parent d9e054477b
commit 53d9975947
3 changed files with 2 additions and 0 deletions

View File

@ -68,6 +68,8 @@ static int use_pre_checkout() {
if(err) return 1;
err = system("git checkout " BRANCH_S);
if(err) return 1;
err = system("git reset --hard origin/" BRANCH_S);
if(err) return 1;
// Move to final location
err = system("mv /tmp/openpilot /data");