From: René Scharfe Date: Tue, 19 Aug 2014 19:11:00 +0000 (+0200) Subject: run-command: call run_command_v_opt_cd_env() instead of duplicating it X-Git-Tag: v2.2.0-rc0~145^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41e9bad75e05245859c013dadefc63166b9175c9;p=git run-command: call run_command_v_opt_cd_env() instead of duplicating it Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- diff --git a/run-command.c b/run-command.c index 47ab21bcc3..9196ee0fe3 100644 --- a/run-command.c +++ b/run-command.c @@ -577,9 +577,7 @@ static void prepare_run_command_v_opt(struct child_process *cmd, int run_command_v_opt(const char **argv, int opt) { - struct child_process cmd; - prepare_run_command_v_opt(&cmd, argv, opt); - return run_command(&cmd); + return run_command_v_opt_cd_env(argv, opt, NULL, NULL); } int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const char *const *env)