Fixed bug introduced with commit aeb9ad6 (Fixes #68).

The interval check was referencing commits instead of self.commits.
This commit is contained in:
Adam Waldenberg 2015-09-24 21:40:57 +02:00
parent a6c05cc619
commit 582ffe7246

View file

@ -208,8 +208,8 @@ class Changes:
self.commits = [item for sublist in self.commits for item in sublist]
if interval.has_interval() and len(commits) > 0:
interval.set_ref(commits[-1].sha)
if interval.has_interval() and len(self.commits) > 0:
interval.set_ref(self.commits[-1].sha)
if len(self.commits) > 0:
self.first_commit_date = datetime.date(int(self.commits[0].date[0:4]), int(self.commits[0].date[5:7]),