mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-05-31 16:48:38 +08:00
Fix updater issue with newer portable. (#7917)
This commit is contained in:
parent
065d855f14
commit
486ad8fdc5
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user