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:
parent
f4c3285cb8
commit
88c01e62ed
|
@ -116,7 +116,7 @@ class Changes:
|
||||||
filediff = FileDiff(i)
|
filediff = FileDiff(i)
|
||||||
commit.add_filediff(filediff)
|
commit.add_filediff(filediff)
|
||||||
|
|
||||||
if interval.has_interval():
|
if interval.has_interval() and len(self.commits) > 0:
|
||||||
interval.set_ref(self.commits[0].sha)
|
interval.set_ref(self.commits[0].sha)
|
||||||
|
|
||||||
def get_commits(self):
|
def get_commits(self):
|
||||||
|
|
Loading…
Reference in New Issue