From e52d835dc6c085bcd249e9b6afe157b40ffc07ff Mon Sep 17 00:00:00 2001 From: ltdrdata Date: Wed, 31 May 2023 00:01:03 +0900 Subject: [PATCH] windows update bugfix --- README.md | 2 ++ __init__.py | 2 +- git_helper.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 77a9b5c1..dde1dbb1 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ # Changes +* **V0.7.1** Bug fix for the issue where updates were not being applied on Windows. + * **For those who have been using versions 0.5 through 0.6, please perform a manual git pull in the custom_nodes/ComfyUI-Manager directory.** * **V0.7** To address the issue of a slow list refresh, separate the fetch update and update check processes. * **V0.6** Support extension installation for missing nodes. * **V0.5** Removed external git program dependencies. diff --git a/__init__.py b/__init__.py index d45dc355..a49eb278 100644 --- a/__init__.py +++ b/__init__.py @@ -16,7 +16,7 @@ sys.path.append('../..') from torchvision.datasets.utils import download_url # ensure .js -print("### Loading: ComfyUI-Manager (V0.7)") +print("### Loading: ComfyUI-Manager (V0.7.1)") comfy_path = os.path.dirname(folder_paths.__file__) custom_nodes_path = os.path.join(comfy_path, 'custom_nodes') diff --git a/git_helper.py b/git_helper.py index 8d14be4c..02c61c2a 100644 --- a/git_helper.py +++ b/git_helper.py @@ -44,7 +44,8 @@ def gitpull(path): # Pull the latest changes from the remote repository repo = git.Repo(path) origin = repo.remote(name='origin') - origin.pull(submodule_update='recursive') + origin.pull() + repo.git.submodule('update', '--init', '--recursive') repo.close()