Fix updater issue with newer portable.

This commit is contained in:
comfyanonymous 2025-05-03 00:26:15 -04:00 committed by GitHub
parent 065d855f14
commit 5e338c038f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.")
pull(repo)
ref = repo.lookup_reference('refs/remotes/origin/master')
repo.checkout(ref)
branch = repo.lookup_branch('master')
if branch is None: