]> git.ipfire.org Git - thirdparty/git.git/blobdiff - run-command.c
Merge branch 'bc/run-command-nullness-after-free-fix' into maint
[thirdparty/git.git] / run-command.c
index 946a2cf4b726bdec1e85e520ca5177502f0c8c76..f5e1149f9b395e77c3d55a147332c1117746d7b1 100644 (file)
@@ -413,8 +413,7 @@ static int prepare_cmd(struct argv_array *out, const struct child_process *cmd)
        argv_array_push(out, SHELL_PATH);
 
        if (cmd->git_cmd) {
-               argv_array_push(out, "git");
-               argv_array_pushv(out, cmd->argv);
+               prepare_git_cmd(out, cmd->argv);
        } else if (cmd->use_shell) {
                prepare_shell_cmd(out, cmd->argv);
        } else {