]> git.ipfire.org Git - thirdparty/git.git/blobdiff - upload-pack.c
run-command API users: use strvec_pushl(), not argv construction
[thirdparty/git.git] / upload-pack.c
index c78d55bc674ed2b22b7f4417173242ad4e53bfd0..9b5db32623fa3100a697a6ddf64cccc75865563f 100644 (file)
@@ -596,14 +596,11 @@ static int do_reachable_revlist(struct child_process *cmd,
                                struct object_array *reachable,
                                enum allow_uor allow_uor)
 {
-       static const char *argv[] = {
-               "rev-list", "--stdin", NULL,
-       };
        struct object *o;
        FILE *cmd_in = NULL;
        int i;
 
-       cmd->argv = argv;
+       strvec_pushl(&cmd->args, "rev-list", "--stdin", NULL);
        cmd->git_cmd = 1;
        cmd->no_stderr = 1;
        cmd->in = -1;