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

old-commit-hash: e29988ab7b5aad52f8e0c1903cca6ecabd9ed143
This commit is contained in:
Cameron Clough
2022-09-20 16:41:20 -07:00
committed by GitHub
parent 129a49aeef
commit 8fdfc606c2
+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"],