mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-02-11 05:32:30 +08:00
Merge branch 'main' into improve/api-installed
This commit is contained in:
commit
5ff8a6059d
@ -135,9 +135,9 @@ def switch_to_default_branch(repo):
|
||||
repo.git.checkout(repo.heads.master)
|
||||
except:
|
||||
try:
|
||||
repo.git.checkout(repo.heads.main)
|
||||
repo.git.checkout('-b', 'master', 'origin/master')
|
||||
except:
|
||||
print("[ComfyUI Manager] Failed to switch to the default branch (master or main)")
|
||||
print("[ComfyUI Manager] Failed to switch to the default branch")
|
||||
|
||||
|
||||
def gitpull(path):
|
||||
|
||||
@ -1571,9 +1571,9 @@ def switch_to_default_branch(repo):
|
||||
repo.git.checkout(repo.heads.master)
|
||||
except:
|
||||
try:
|
||||
repo.git.checkout(repo.heads.main)
|
||||
repo.git.checkout('-b', 'master', 'origin/master')
|
||||
except:
|
||||
print("[ComfyUI Manager] Failed to switch to the default branch (master or main)")
|
||||
print("[ComfyUI Manager] Failed to switch to the default branch")
|
||||
|
||||
|
||||
def try_install_script(url, repo_path, install_cmd, instant_execution=False):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user