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 22, 2022
1 parent e945191 commit 751fa71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions transport-helper.c
Expand Up @@ -478,6 +478,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 751fa71

Please sign in to comment.