Skip to content

Commit 486ad8f

Browse files
Fix updater issue with newer portable. (Comfy-Org#7917)
1 parent 065d855 commit 486ad8f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.ci/update_windows/update.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ def pull(repo, remote_name='origin', branch='master'):
6363
print("checking out master branch") # noqa: T201
6464
branch = repo.lookup_branch('master')
6565
if branch is None:
66-
ref = repo.lookup_reference('refs/remotes/origin/master')
66+
try:
67+
ref = repo.lookup_reference('refs/remotes/origin/master')
68+
except:
69+
print("pulling.") # noqa: T201
70+
pull(repo)
71+
ref = repo.lookup_reference('refs/remotes/origin/master')
6772
repo.checkout(ref)
6873
branch = repo.lookup_branch('master')
6974
if branch is None:

0 commit comments

Comments
 (0)