mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -05:00
Fix for incorrectly displayed remote branch list when in advanced settings.
This commit is contained in:
parent
7dc89c084f
commit
a8bcbc66c3
@ -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'],
|
||||||
|
params={'per_page': 100})
|
||||||
return access_API
|
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 New Issue
Block a user