mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 10:58:01 -05:00
Fixed sickragetv/sickrage-issues#162 - will always return list object even when branches do not exist
This commit is contained in:
parent
340bcffc91
commit
ce7873584f
@ -433,7 +433,8 @@ class GitUpdateManager(UpdateManager):
|
||||
|
||||
branches, err, exit_status = self._run_git(self._git_path, 'ls-remote --heads %s' % sickbeard.GIT_REMOTE) # @UnusedVariable
|
||||
if exit_status == 0 and branches:
|
||||
return re.findall('\S+\Wrefs/heads/(.*)', branches)
|
||||
if branches:
|
||||
return re.findall('\S+\Wrefs/heads/(.*)', branches)
|
||||
return []
|
||||
|
||||
def update_remote_origin(self):
|
||||
|
Loading…
Reference in New Issue
Block a user