mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 22:23:56 +08:00
updated: configure branch upstream (#25916)
This commit is contained in:
@@ -339,7 +339,7 @@ class Updater:
|
||||
excluded_branches = ('release2', 'release2-staging', 'dashcam', 'dashcam-staging')
|
||||
|
||||
setup_git_options(OVERLAY_MERGED)
|
||||
output = run(["git", "ls-remote", "--heads"], OVERLAY_MERGED)
|
||||
output = run(["git", "ls-remote", "--heads", "origin"], OVERLAY_MERGED)
|
||||
|
||||
self.branches = defaultdict(lambda: None)
|
||||
for line in output.split('\n'):
|
||||
@@ -375,6 +375,7 @@ class Updater:
|
||||
cloudlog.info("git reset in progress")
|
||||
cmds = [
|
||||
["git", "checkout", "--force", "--no-recurse-submodules", "-B", branch, "FETCH_HEAD"],
|
||||
["git", "branch", "--set-upstream-to", f"origin/{branch}"],
|
||||
["git", "reset", "--hard"],
|
||||
["git", "clean", "-xdf"],
|
||||
["git", "submodule", "init"],
|
||||
|
||||
Reference in New Issue
Block a user