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

This commit is contained in:
Cameron Clough
2022-09-20 16:41:20 -07:00
committed by GitHub
parent bae94a0070
commit e29988ab7b
+2 -2
View File
@@ -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"],