From c07f44d0ce17ec99e21978aa8dd3b106756509d5 Mon Sep 17 00:00:00 2001 From: Sverre Rabbelier Date: Sat, 28 Aug 2010 20:49:01 -0500 Subject: [PATCH] transport-helper: add trailing -- [PT: ensure we add an additional element to the argv array] --- transport-helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/transport-helper.c b/transport-helper.c index 63cabc37e3..aa8fd5eaf0 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -415,7 +415,7 @@ static int get_exporter(struct transport *transport, /* we need to duplicate helper->in because we want to use it after * fastexport is done with it. */ fastexport->out = dup(helper->in); - fastexport->argv = xcalloc(6 + revlist_args->nr, sizeof(*fastexport->argv)); + fastexport->argv = xcalloc(7 + revlist_args->nr, sizeof(*fastexport->argv)); fastexport->argv[argc++] = "fast-export"; fastexport->argv[argc++] = "--use-done-feature"; fastexport->argv[argc++] = data->signed_tags ? @@ -428,6 +428,8 @@ static int get_exporter(struct transport *transport, for (i = 0; i < revlist_args->nr; i++) fastexport->argv[argc++] = revlist_args->items[i].string; + fastexport->argv[argc++] = "--"; + fastexport->git_cmd = 1; return start_command(fastexport); } -- 2.11.4.GIT