From 88c01e62ed4b0e62597960eda88da412e10c5375 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Mon, 6 May 2013 00:29:55 +0200 Subject: [PATCH] Fixed a IndexError which happened whenever no commits were found. This happened when an interval was set and no commits were made within the specified interval. --- changes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/changes.py b/changes.py index 7d42df8..3d5deec 100644 --- a/changes.py +++ b/changes.py @@ -116,7 +116,7 @@ class Changes: filediff = FileDiff(i) commit.add_filediff(filediff) - if interval.has_interval(): + if interval.has_interval() and len(self.commits) > 0: interval.set_ref(self.commits[0].sha) def get_commits(self):