From 79da40f93f3b88e553aedb59d5cea40bd6b05888 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 16 Sep 2013 15:57:57 +0100 Subject: [PATCH] use correct out-path with --update flag --- gitwalker/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitwalker/main.py b/gitwalker/main.py index d03ff14..e5728ba 100644 --- a/gitwalker/main.py +++ b/gitwalker/main.py @@ -105,8 +105,8 @@ def main(): log("[%s] %s", cmd.name, pprint.pformat(rec["results"][cmd.name])) out[sha1] = rec - log("Writing output file: %s", opts.out_path) - json.dump(out, open(opts.out_path, "w"), indent=1) + log("Writing output file: %s", out_path) + json.dump(out, open(out_path, "w"), indent=1) finally: log("Tidying temp dir: %s", git_new) shutil.rmtree(git_new)