mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-27 00:45:05 -05:00
transport-helper: add trailing --
[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>
This commit is contained in:
committed by
Johannes Schindelin
parent
e300ee03cd
commit
4c2bec34c4
@@ -484,6 +484,8 @@ static int get_exporter(struct transport *transport,
|
|||||||
for (i = 0; i < revlist_args->nr; i++)
|
for (i = 0; i < revlist_args->nr; i++)
|
||||||
strvec_push(&fastexport->args, revlist_args->items[i].string);
|
strvec_push(&fastexport->args, revlist_args->items[i].string);
|
||||||
|
|
||||||
|
strvec_push(&fastexport->args, "--");
|
||||||
|
|
||||||
fastexport->git_cmd = 1;
|
fastexport->git_cmd = 1;
|
||||||
return start_command(fastexport);
|
return start_command(fastexport);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user