Append stats even if last repo inspected had no matching commits

This commit is contained in:
Maxim Ivanov 2016-10-21 14:58:33 +01:00
parent ba1c3341fe
commit 6d52ee3572
2 changed files with 5 additions and 2 deletions

View File

@ -247,7 +247,10 @@ class Changes(object):
return other;
def get_commits(self):
return self.commits
try:
return self.commits
except AttributeError:
return []
@staticmethod
def modify_authorinfo(authors, key, commit):

View File

@ -82,7 +82,7 @@ class Runner(object):
format.output_header(repos)
outputable.output(ChangesOutput(summed_changes))
if changes.get_commits():
if summed_changes.get_commits():
outputable.output(BlameOutput(summed_changes, summed_blames))
if self.timeline: