mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
Fixes issues with inital setting of branch version on startup first run
This commit is contained in:
parent
bd2748d33a
commit
326d0204c0
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue