Skip to content
This repository was archived by the owner on Nov 9, 2017. It is now read-only.

Commit df8dfa3

Browse files
SRabbelierkasal
authored andcommitted
transport-helper: add trailing --
[PT: ensure we add an additional element to the argv array]
1 parent b1a3988 commit df8dfa3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

transport-helper.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ static int get_exporter(struct transport *transport,
429429
/* we need to duplicate helper->in because we want to use it after
430430
* fastexport is done with it. */
431431
fastexport->out = dup(helper->in);
432-
fastexport->argv = xcalloc(6 + revlist_args->nr, sizeof(*fastexport->argv));
432+
fastexport->argv = xcalloc(7 + revlist_args->nr, sizeof(*fastexport->argv));
433433
fastexport->argv[argc++] = "fast-export";
434434
fastexport->argv[argc++] = "--use-done-feature";
435435
fastexport->argv[argc++] = data->signed_tags ?
@@ -446,6 +446,8 @@ static int get_exporter(struct transport *transport,
446446
for (i = 0; i < revlist_args->nr; i++)
447447
fastexport->argv[argc++] = revlist_args->items[i].string;
448448

449+
fastexport->argv[argc++] = "--";
450+
449451
fastexport->git_cmd = 1;
450452
return start_command(fastexport);
451453
}

0 commit comments

Comments
 (0)