mirror of
https://github.com/git/git.git
synced 2026-02-10 17:57:23 +00:00
transport-helper: add trailing --
[PT: ensure we add an additional element to the argv array]
This commit is contained in:
committed by
Johannes Schindelin
parent
2badc03f91
commit
6474c2a686
@@ -429,7 +429,7 @@ static int get_exporter(struct transport *transport,
|
||||
/* we need to duplicate helper->in because we want to use it after
|
||||
* fastexport is done with it. */
|
||||
fastexport->out = dup(helper->in);
|
||||
fastexport->argv = xcalloc(6 + revlist_args->nr, sizeof(*fastexport->argv));
|
||||
fastexport->argv = xcalloc(7 + revlist_args->nr, sizeof(*fastexport->argv));
|
||||
fastexport->argv[argc++] = "fast-export";
|
||||
fastexport->argv[argc++] = "--use-done-feature";
|
||||
fastexport->argv[argc++] = data->signed_tags ?
|
||||
@@ -442,6 +442,8 @@ static int get_exporter(struct transport *transport,
|
||||
for (i = 0; i < revlist_args->nr; i++)
|
||||
fastexport->argv[argc++] = revlist_args->items[i].string;
|
||||
|
||||
fastexport->argv[argc++] = "--";
|
||||
|
||||
fastexport->git_cmd = 1;
|
||||
return start_command(fastexport);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user