Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Fix updater issue with newer portable. (#7917)

comfyanonymous486ad8fdc554
diff --git a/.ci/update_windows/update.py b/.ci/update_windows/update.py
index 731b6bc53..51a263203 100755
--- a/.ci/update_windows/update.py
+++ b/.ci/update_windows/update.py
@@ -63,7 +63,12 @@ except:
print("checking out master branch") # noqa: T201
branch = repo.lookup_branch('master')
if branch is None:
- ref = repo.lookup_reference('refs/remotes/origin/master')
+ try:
+ ref = repo.lookup_reference('refs/remotes/origin/master')
+ except:
+ print("pulling.") # noqa: T201
+ pull(repo)
+ ref = repo.lookup_reference('refs/remotes/origin/master')
repo.checkout(ref)
branch = repo.lookup_branch('master')
if branch is None: