mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-12-22 13:42:14 +01:00
The changes module could crash upon no detected file types (Fixes #68).
The sub list flattening happening after all the "changes threads" have run should be happening before the len(self.commits) check, not after.
This commit is contained in:
parent
e4827ee58e
commit
243e52b5de
1 changed files with 2 additions and 2 deletions
|
@ -211,9 +211,9 @@ class Changes:
|
|||
for i in range(0, NUM_THREADS):
|
||||
__thread_lock__.acquire()
|
||||
|
||||
if len(self.commits) > 0:
|
||||
self.commits = [item for sublist in self.commits for item in sublist]
|
||||
self.commits = [item for sublist in self.commits for item in sublist]
|
||||
|
||||
if len(self.commits) > 0:
|
||||
if interval.has_interval() and len(self.commits) > 0:
|
||||
interval.set_ref(self.commits[-1].sha)
|
||||
|
||||
|
|
Loading…
Reference in a new issue