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.
This commit is contained in:
Adam Waldenberg 2013-05-06 00:29:55 +02:00
parent f4c3285cb8
commit 88c01e62ed
1 changed files with 1 additions and 1 deletions

View File

@ -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):