installer: add reset to make sure latest is checked out if branch doesnt change
parent
d9e054477b
commit
53d9975947
|
@ -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");
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue