Commit 37ea161e authored by echel0n's avatar echel0n
Browse files

Fixed an issue with version updating related to checking for number of commits...

Fixed an issue with version updating related to checking for number of commits behind, manual update to this version commit may be required.
parent 9e9200c1
......@@ -132,10 +132,10 @@ release:build:master:
- git push https://$GIT_ACCESS_USER:[email protected]$CI_SERVER_HOST/$CI_PROJECT_PATH.git HEAD:develop --follow-tags
when: manual
only:
- develop@SiCKRAGE/sickrage
- /^[0-9.]+dev[0-9]+$/@SiCKRAGE/sickrage
except:
refs:
- tags
- branches
- triggers
variables:
- $CI_COMMIT_MESSAGE =~ /\[TASK\] Releasing/
......
......@@ -484,7 +484,7 @@ class GitUpdateManager(UpdateManager):
def need_update(self):
try:
return (False, True)[self.version != self.get_newest_version and self._num_commits_behind]
return (False, True)[self.version != self.get_newest_version and self._num_commits_behind > 0]
except Exception as e:
sickrage.app.log.warning("Unable to contact server, can't check for update: " + repr(e))
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment