mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-09-27 18:01:30 +02:00
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)
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user