mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-16 01:37:04 +08:00
Fix issue with portable updater. (#11070)
This should fix the problem with the portable updater not working with portables created from a separate branch on the repo. This does not affect any current portables who were all created on the master branch.
This commit is contained in:
parent
c120eee5ba
commit
861817d22d
@ -66,8 +66,10 @@ if branch is None:
|
|||||||
try:
|
try:
|
||||||
ref = repo.lookup_reference('refs/remotes/origin/master')
|
ref = repo.lookup_reference('refs/remotes/origin/master')
|
||||||
except:
|
except:
|
||||||
print("pulling.") # noqa: T201
|
print("fetching.") # noqa: T201
|
||||||
pull(repo)
|
for remote in repo.remotes:
|
||||||
|
if remote.name == "origin":
|
||||||
|
remote.fetch()
|
||||||
ref = repo.lookup_reference('refs/remotes/origin/master')
|
ref = repo.lookup_reference('refs/remotes/origin/master')
|
||||||
repo.checkout(ref)
|
repo.checkout(ref)
|
||||||
branch = repo.lookup_branch('master')
|
branch = repo.lookup_branch('master')
|
||||||
@ -149,3 +151,4 @@ try:
|
|||||||
shutil.copy(stable_update_script, stable_update_script_to)
|
shutil.copy(stable_update_script, stable_update_script_to)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user