diff --git a/git_helper.py b/git_helper.py index 9cf21104..eb7e3a9e 100644 --- a/git_helper.py +++ b/git_helper.py @@ -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): diff --git a/glob/manager_core.py b/glob/manager_core.py index c7ef5d94..8f4557e0 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -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): diff --git a/pyproject.toml b/pyproject.toml index 1362fcd4..623224f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "3.3.12" +version = "3.3.13" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]