This commit is contained in:
Alex Grintsvayg 2017-03-15 11:18:59 -04:00
parent edcdd43b0e
commit ead8677ca5

View file

@ -222,8 +222,9 @@ class Repo(object):
return string.split(line)[2] if line else None return string.split(line)[2] if line else None
def has_changes_from_revision(self, revision): def has_changes_from_revision(self, revision):
logging.info('%s =? %s', self.git_repo.commit(), revision) commit = str(self.git_repo.commit())
return self.git_repo.commit() != revision logging.info('%s =? %s', commit, revision)
return commit != revision
def save_commit(self): def save_commit(self):
self.saved_commit = self.git_repo.commit() self.saved_commit = self.git_repo.commit()