[PATCH 4/4] When debug==1, start fast-import with "--stats" instead of "--quiet".
- From
Florian Achleitner <florian.achleitner.2.6.31@gmail.com>
- Date
- Jul 11, 2012, 13:38 UTC
- Message-ID
- <1342013933-14381-5-git-send-email-florian.achleitner.2.6.31@gmail.com>
- In-Reply-To
- <1342013933-14381-4-git-send-email-florian.achleitner.2.6.31@gmail.com>
fast-import prints statistics that could be interesting to the developer of remote helpers.
Signed-off-by: Florian Achleitner <florian.achleitner.2.6.31@gmail.com> --- transport-helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/transport-helper.c b/transport-helper.c index 616db91..d6daad5 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -392,7 +392,7 @@ static int get_importer(struct transport *transport, struct child_process *fasti memset(fastimport, 0, sizeof(*fastimport)); fastimport->in = helper->out; argv_array_push(argv, "fast-import"); - argv_array_push(argv, "--quiet"); + argv_array_push(argv, debug ? "--stats" : "--quiet"); argv_array_pushf(argv, "--cat-blob-pipe=%s", data->report_fifo); fastimport->argv = argv->argv; fastimport->git_cmd = 1;
-- 1.7.9.5