Skip to content

Commit

Permalink
run-command: call run_command_v_opt_cd_env() instead of duplicating it
Browse files Browse the repository at this point in the history
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
René Scharfe authored and Junio C Hamano committed Aug 20, 2014
1 parent 483bbd4 commit 41e9bad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions run-command.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 41e9bad

Please sign in to comment.