Fixes issues with inital setting of branch version on startup first run

This commit is contained in:
echel0n 2014-07-28 17:32:12 -07:00
parent bd2748d33a
commit 326d0204c0
1 changed files with 8 additions and 2 deletions

View File

@ -279,7 +279,10 @@ class GitUpdateManager(UpdateManager):
self._git_path = self._find_working_git()
self.github_repo_user = self.get_github_repo_user()
self.github_repo = self.get_github_repo()
self.branch = sickbeard.BRANCH or self._find_installed_branch()
self.branch = sickbeard.BRANCH
if not (sickbeard.BRANCH or sickbeard.BRANCH == ''):
self.branch = self._find_installed_branch()
self._cur_commit_hash = None
self._newest_commit_hash = None
@ -534,7 +537,10 @@ class SourceUpdateManager(UpdateManager):
def __init__(self):
self.github_repo_user = self.get_github_repo_user()
self.github_repo = self.get_github_repo()
self.branch = sickbeard.BRANCH or self._find_installed_branch()
self.branch = sickbeard.BRANCH
if not (sickbeard.BRANCH or sickbeard.BRANCH == ''):
self.branch = self._find_installed_branch()
self._cur_commit_hash = None
self._newest_commit_hash = None