mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-20 08:42:11 +08:00
installer: add reset to make sure latest is checked out if branch doesnt change
old-commit-hash: 53d9975947
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bb1c814cc3273badbb59c768c58219d78b1df65c11bd7d5828dc9940d0e6d788
|
||||
oid sha256:0ca0e294eca65b0c787c9f64ff1c05481e56b5ee6a14fd3996d91db96a39d249
|
||||
size 538912
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:129f7dbb9afe7f9187f6ebd8cafc25efe3782b60460f98ac11235778b85bb57d
|
||||
oid sha256:009e09b2d145e1bbeadf426ad669ae505bb659fa489c9724b288d8458da65819
|
||||
size 538912
|
||||
|
||||
Reference in New Issue
Block a user