Skip to content

Commit 41e9bad

Browse files
rscharfegitster
authored andcommitted
run-command: call run_command_v_opt_cd_env() instead of duplicating it
Signed-off-by: Rene Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 483bbd4 commit 41e9bad

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

run-command.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,7 @@ static void prepare_run_command_v_opt(struct child_process *cmd,
577577

578578
int run_command_v_opt(const char **argv, int opt)
579579
{
580-
struct child_process cmd;
581-
prepare_run_command_v_opt(&cmd, argv, opt);
582-
return run_command(&cmd);
580+
return run_command_v_opt_cd_env(argv, opt, NULL, NULL);
583581
}
584582

585583
int run_command_v_opt_cd_env(const char **argv, int opt, const char *dir, const char *const *env)

0 commit comments

Comments
 (0)