Skip to content

Commit 50f0a12

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 dec23a5 commit 50f0a12

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
@@ -500,6 +500,8 @@ static int get_exporter(struct transport *transport,
500500
for (i = 0; i < revlist_args->nr; i++)
501501
strvec_push(&fastexport->args, revlist_args->items[i].string);
502502

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

0 commit comments

Comments
 (0)