From: René Scharfe Date: Tue, 26 Nov 2019 09:06:36 +0000 (+0100) Subject: run-command: use prepare_git_cmd() in prepare_cmd() X-Git-Tag: v2.25.0-rc0~62^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54a7a64613ca6cda431bbfab3867ebe354c1e9da;p=thirdparty%2Fgit.git run-command: use prepare_git_cmd() in prepare_cmd() Call prepare_git_cmd() instead of open-coding it. Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- diff --git a/run-command.c b/run-command.c index 3449db319b..9942f120a9 100644 --- a/run-command.c +++ b/run-command.c @@ -412,8 +412,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 {