mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 02:23:38 +00:00
Fix for incorrectly displayed remote branch list when in advanced settings.
This commit is contained in:
parent
7dc89c084f
commit
a8bcbc66c3
2 changed files with 5 additions and 10 deletions
|
@ -90,11 +90,6 @@ class GitHub(object):
|
||||||
|
|
||||||
def branches(self):
|
def branches(self):
|
||||||
access_API = self._access_API(
|
access_API = self._access_API(
|
||||||
['repos', self.github_repo_user, self.github_repo, 'branches'])
|
['repos', self.github_repo_user, self.github_repo, 'branches'],
|
||||||
return access_API
|
params={'per_page': 100})
|
||||||
|
return access_API
|
||||||
def checkout(self, branch):
|
|
||||||
access_API = self._access_API(
|
|
||||||
['repos', self.github_repo_user, self.github_repo, 'branches'])
|
|
||||||
return access_API
|
|
||||||
|
|
|
@ -528,9 +528,9 @@ class GitUpdateManager(UpdateManager):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def list_remote_branches(self):
|
def list_remote_branches(self):
|
||||||
branches, err, exit_status = self._run_git(self._git_path, 'branch -r') # @UnusedVariable
|
branches, err, exit_status = self._run_git(self._git_path, 'ls-remote --heads origin') # @UnusedVariable
|
||||||
if exit_status == 0 and branches:
|
if exit_status == 0 and branches:
|
||||||
return branches.strip().replace('origin/', '').split()
|
return re.findall('\S+\Wrefs/heads/(.*)', branches)
|
||||||
return []
|
return []
|
||||||
|
|
||||||
class SourceUpdateManager(UpdateManager):
|
class SourceUpdateManager(UpdateManager):
|
||||||
|
|
Loading…
Reference in a new issue