summaryrefslogtreecommitdiff
path: root/run-command.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2014-08-19 21:11:00 +0200
committerJunio C Hamano <gitster@pobox.com>2014-08-20 09:55:41 -0700
commit41e9bad75e05245859c013dadefc63166b9175c9 (patch)
tree5e59ec6ef84046d9e1fa9e900f0012991d52a8b8 /run-command.c
parent483bbd4e4ce8a5c717cd47d732893317a14c965a (diff)
downloadgit-41e9bad75e05245859c013dadefc63166b9175c9.tar.gz
run-command: call run_command_v_opt_cd_env() instead of duplicating it
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'run-command.c')
-rw-r--r--run-command.c4
1 files changed, 1 insertions, 3 deletions
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)