Merge branch 'main' into improve/api-installed

This commit is contained in:
Dr.Lt.Data 2025-01-06 22:28:23 +09:00
commit 5ff8a6059d
2 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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):