mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-09-29 02:41:30 +02:00
fix error: fatal not tree
This commit is contained in:
parent
e543eeaf58
commit
60b5305801
@ -219,7 +219,8 @@ class Changes(object):
|
|||||||
for i in range(0, NUM_THREADS):
|
for i in range(0, NUM_THREADS):
|
||||||
__thread_lock__.release()
|
__thread_lock__.release()
|
||||||
|
|
||||||
self.commits = [item for sublist in self.commits for item in sublist]
|
sublist = [sub for sub in self.commits if sub is not None]
|
||||||
|
self.commits = [item for s in sublist for item in s]
|
||||||
|
|
||||||
if len(self.commits) > 0:
|
if len(self.commits) > 0:
|
||||||
if interval.has_interval() and len(self.commits) > 0:
|
if interval.has_interval() and len(self.commits) > 0:
|
||||||
@ -229,6 +230,8 @@ class Changes(object):
|
|||||||
int(self.commits[0].date[8:10]))
|
int(self.commits[0].date[8:10]))
|
||||||
self.last_commit_date = datetime.date(int(self.commits[-1].date[0:4]), int(self.commits[-1].date[5:7]),
|
self.last_commit_date = datetime.date(int(self.commits[-1].date[0:4]), int(self.commits[-1].date[5:7]),
|
||||||
int(self.commits[-1].date[8:10]))
|
int(self.commits[-1].date[8:10]))
|
||||||
|
else:
|
||||||
|
interval.set_ref('HEAD')
|
||||||
|
|
||||||
def __iadd__(self, other):
|
def __iadd__(self, other):
|
||||||
try:
|
try:
|
||||||
|
@ -82,7 +82,7 @@ class Runner(object):
|
|||||||
format.output_header(repos)
|
format.output_header(repos)
|
||||||
outputable.output(ChangesOutput(summed_changes))
|
outputable.output(ChangesOutput(summed_changes))
|
||||||
|
|
||||||
if changes.get_commits():
|
#if changes.get_commits():
|
||||||
outputable.output(BlameOutput(summed_changes, summed_blames))
|
outputable.output(BlameOutput(summed_changes, summed_blames))
|
||||||
|
|
||||||
if self.timeline:
|
if self.timeline:
|
||||||
|
Loading…
Reference in New Issue
Block a user