transport-helper: add trailing --

This commit is contained in:
Sverre Rabbelier
2010-08-28 20:49:01 -05:00
committed by Pat Thoyts
parent a85de2c9f9
commit 2412a454c8

View File

@@ -398,7 +398,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(5 + revlist_args->nr, sizeof(*fastexport->argv));
fastexport->argv = xcalloc(6 + revlist_args->nr, sizeof(*fastexport->argv));
fastexport->argv[argc++] = "fast-export";
fastexport->argv[argc++] = "--use-done-feature";
if (data->export_marks)
@@ -409,6 +409,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);
}