mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-24 15:32:07 +08:00
updater: enable branch switching with installer gitconfig (#25854)
This commit is contained in:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user