Browse Source

windows update bugfix

pull/14/head
ltdrdata 1 year ago
parent
commit
e52d835dc6
  1. 2
      README.md
  2. 2
      __init__.py
  3. 3
      git_helper.py

2
README.md

@ -8,6 +8,8 @@
# Changes # 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.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.6** Support extension installation for missing nodes.
* **V0.5** Removed external git program dependencies. * **V0.5** Removed external git program dependencies.

2
__init__.py

@ -16,7 +16,7 @@ sys.path.append('../..')
from torchvision.datasets.utils import download_url from torchvision.datasets.utils import download_url
# ensure .js # ensure .js
print("### Loading: ComfyUI-Manager (V0.7)") print("### Loading: ComfyUI-Manager (V0.7.1)")
comfy_path = os.path.dirname(folder_paths.__file__) comfy_path = os.path.dirname(folder_paths.__file__)
custom_nodes_path = os.path.join(comfy_path, 'custom_nodes') custom_nodes_path = os.path.join(comfy_path, 'custom_nodes')

3
git_helper.py

@ -44,7 +44,8 @@ def gitpull(path):
# Pull the latest changes from the remote repository # Pull the latest changes from the remote repository
repo = git.Repo(path) repo = git.Repo(path)
origin = repo.remote(name='origin') origin = repo.remote(name='origin')
origin.pull(submodule_update='recursive') origin.pull()
repo.git.submodule('update', '--init', '--recursive')
repo.close() repo.close()

Loading…
Cancel
Save