From 12f8c8a192c3d52e9828417207e8988f9751c9b0 Mon Sep 17 00:00:00 2001 From: Adam Waldenberg Date: Sat, 7 Nov 2015 05:55:14 +0100 Subject: [PATCH] Use repos_string instead of repos[0].name in JSON output in format.py. --- gitinspector/format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitinspector/format.py b/gitinspector/format.py index 505f9b1..505da03 100644 --- a/gitinspector/format.py +++ b/gitinspector/format.py @@ -113,7 +113,7 @@ def output_header(repos): print("\t\t\"version\": \"" + version.__version__ + "\",") if len(repos) <= 1: - print("\t\t\"repository\": \"" + repos[0].name + "\",") + print("\t\t\"repository\": \"" + repos_string + "\",") else: repos_json = "\t\t\"repositories\": [ "