Skip to content

Commit

Permalink
transport-helper: add trailing --
Browse files Browse the repository at this point in the history
[PT: ensure we add an additional element to the argv array]

Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
SRabbelier authored and dscho committed Sep 24, 2024
1 parent 0d5ed89 commit fc564e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions transport-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ static int get_exporter(struct transport *transport,
for (i = 0; i < revlist_args->nr; i++)
strvec_push(&fastexport->args, revlist_args->items[i].string);

strvec_push(&fastexport->args, "--");

fastexport->git_cmd = 1;
return start_command(fastexport);
}
Expand Down

0 comments on commit fc564e3

Please sign in to comment.