Skip to content

Commit aec753c

Browse files
SRabbelierdscho
authored andcommitted
transport-helper: add trailing --
[PT: ensure we add an additional element to the argv array] Signed-off-by: Sverre Rabbelier <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 11bb5b8 commit aec753c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

transport-helper.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,8 @@ static int get_exporter(struct transport *transport,
499499
for (size_t i = 0; i < revlist_args->nr; i++)
500500
strvec_push(&fastexport->args, revlist_args->items[i].string);
501501

502+
strvec_push(&fastexport->args, "--");
503+
502504
fastexport->git_cmd = 1;
503505
return start_command(fastexport);
504506
}

0 commit comments

Comments
 (0)