From 983d3d05bdb88dead1517224304aeac3cba698e4 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Sat, 13 May 2017 15:16:37 +0200 Subject: [PATCH] When generating the report, summed changes need to be non-empty (#132). Previoulsy, we were just checking against the changes returned from the last repository analyzed - which of course broke the whole thing if that repository had no matching commits! --- gitinspector/gitinspector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitinspector/gitinspector.py b/gitinspector/gitinspector.py index e7197f2..7149294 100644 --- a/gitinspector/gitinspector.py +++ b/gitinspector/gitinspector.py @@ -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: