From bcaba78dd7fd94ea2483d8634d3418dc56dda9f5 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sun, 17 Mar 2024 12:32:32 +0900 Subject: [PATCH] fix: ComfyUI update - robust patch https://github.com/ltdrdata/ComfyUI-Manager/issues/489 --- __init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index 0b783db..ab8d62f 100644 --- a/__init__.py +++ b/__init__.py @@ -29,7 +29,7 @@ except: print(f"[WARN] ComfyUI-Manager: Your ComfyUI version is outdated. Please update to the latest version.") -version = [2, 10, 1] +version = [2, 10, 2] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') print(f"### Loading: ComfyUI-Manager ({version_str})") @@ -1712,7 +1712,11 @@ async def update_comfyui(request): current_branch = repo.active_branch branch_name = current_branch.name - remote_name = current_branch.tracking_branch().remote_name + if current_branch.tracking_branch() is None: + print(f"[ComfyUI-Manager] There is no tracking branch ({current_branch})") + remote_name = 'origin' + else: + remote_name = current_branch.tracking_branch().remote_name remote = repo.remote(name=remote_name) try: