mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-02-11 21:52:35 +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)
|
repo.git.checkout(repo.heads.master)
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
repo.git.checkout(repo.heads.main)
|
repo.git.checkout('-b', 'master', 'origin/master')
|
||||||
except:
|
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):
|
def gitpull(path):
|
||||||
|
|||||||
@ -1571,9 +1571,9 @@ def switch_to_default_branch(repo):
|
|||||||
repo.git.checkout(repo.heads.master)
|
repo.git.checkout(repo.heads.master)
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
repo.git.checkout(repo.heads.main)
|
repo.git.checkout('-b', 'master', 'origin/master')
|
||||||
except:
|
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):
|
def try_install_script(url, repo_path, install_cmd, instant_execution=False):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user