Skip to content

Commit

Permalink
Merge pull request #15233 from light-and-ray/featch_only_active_branc…
Browse files Browse the repository at this point in the history
…h_updates_for_extensions

featch only active branch updates for extensions
  • Loading branch information
AUTOMATIC1111 authored Mar 16, 2024
2 parents d38b390 + b980c81 commit 1282bce
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ def list_files(self, subdir, extension):
def check_updates(self):
repo = Repo(self.path)
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:
self.can_update = True
self.status = "new commits"
Expand Down

0 comments on commit 1282bce

Please sign in to comment.