1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Fix for issue #933, resolves Commit object attribute issues

This commit is contained in:
echel0n 2014-11-22 10:52:15 -08:00
parent 8deb7485ab
commit de23635e28

View File

@ -626,11 +626,11 @@ class SourceUpdateManager(UpdateManager):
for curCommit in sickbeard.gh.get_commits(): for curCommit in sickbeard.gh.get_commits():
if not self._newest_commit_hash: if not self._newest_commit_hash:
self._newest_commit_hash = curCommit['sha'] self._newest_commit_hash = curCommit.sha
if not self._cur_commit_hash: if not self._cur_commit_hash:
break break
if curCommit['sha'] == self._cur_commit_hash: if curCommit.sha == self._cur_commit_hash:
break break
# when _cur_commit_hash doesn't match anything _num_commits_behind == 100 # when _cur_commit_hash doesn't match anything _num_commits_behind == 100