mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-04-25 22:38:59 +08:00
featch only active branch updates for extensions
This commit is contained in:
parent
3e0146f9bd
commit
b980c8140b
@ -156,6 +156,8 @@ class Extension:
|
|||||||
def check_updates(self):
|
def check_updates(self):
|
||||||
repo = Repo(self.path)
|
repo = Repo(self.path)
|
||||||
for fetch in repo.remote().fetch(dry_run=True):
|
for fetch in repo.remote().fetch(dry_run=True):
|
||||||
|
if self.branch and fetch.name != f'{repo.remote().name}/{self.branch}':
|
||||||
|
continue
|
||||||
if fetch.flags != fetch.HEAD_UPTODATE:
|
if fetch.flags != fetch.HEAD_UPTODATE:
|
||||||
self.can_update = True
|
self.can_update = True
|
||||||
self.status = "new commits"
|
self.status = "new commits"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user