mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01: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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue