From 98c375a0abee005d7be14d3a9ad00a1df139ae38 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Mon, 7 Sep 2015 02:22:58 +0200 Subject: [PATCH] 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. --- gitinspector/changes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitinspector/changes.py b/gitinspector/changes.py index dccc37c..dcc8248 100644 --- a/gitinspector/changes.py +++ b/gitinspector/changes.py @@ -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]),