Fixed bug indirectly introduced with commit 0447da19.

When reversing the git log, we forgot to take the interval into
consideration; breaking the --since and--until flags.
This commit is contained in:
Adam Waldenberg 2015-09-07 02:22:58 +02:00
parent b48c65efb1
commit 98c375a0ab

View file

@ -142,7 +142,7 @@ class Changes:
commit.add_filediff(filediff)
if interval.has_interval() and len(self.commits) > 0:
interval.set_ref(self.commits[0].sha)
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]),