mirror of
https://github.com/git/git.git
synced 2024-10-29 21:37:53 +01:00
Merge branch 'rs/simplify-prepare-cmd'
Code cleanup. * rs/simplify-prepare-cmd: run-command: use prepare_git_cmd() in prepare_cmd()
This commit is contained in:
commit
92b52e1bd6
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue