mirror of
https://git.datalinker.icu/ltdrdata/ComfyUI-Manager
synced 2026-07-25 07:17:05 +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…
x
Reference in New Issue
Block a user