updater: enable branch switching with installer gitconfig (#25854)

pull/25829/head^2
Cameron Clough 3 years ago committed by GitHub
parent bae94a0070
commit e29988ab7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/updated.py

@ -374,8 +374,8 @@ class Updater:
cloudlog.info("git reset in progress")
cmds = [
["git", "checkout", "--force", "--no-recurse-submodules", branch],
["git", "reset", "--hard", f"origin/{branch}"],
["git", "checkout", "--force", "--no-recurse-submodules", "-B", branch, "FETCH_HEAD"],
["git", "reset", "--hard"],
["git", "clean", "-xdf"],
["git", "submodule", "init"],
["git", "submodule", "update"],

Loading…
Cancel
Save