fix: robust checkout ComfyUI's master branch
https://github.com/ltdrdata/ComfyUI-Manager/issues/1392
This commit is contained in:
@@ -41,7 +41,7 @@ import manager_downloader
|
||||
from node_package import InstalledNodePackage
|
||||
|
||||
|
||||
version_code = [3, 3, 12]
|
||||
version_code = [3, 3, 13]
|
||||
version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '')
|
||||
|
||||
|
||||
@@ -1527,9 +1527,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):
|
||||
|
||||
Reference in New Issue
Block a user