mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
Append stats even if last repo inspected had no matching commits
This commit is contained in:
parent
ba1c3341fe
commit
6d52ee3572
2 changed files with 5 additions and 2 deletions
|
@ -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):
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue