diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-04-11 13:54:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-04-11 13:54:28 -0700 |
commit | 4553d58f374c6bfcae6b4be528bbf11c18a7efe5 (patch) | |
tree | 44877f9283ffa304e6a805a56f2270fe21b892c7 /run-command.c | |
parent | 7b575f3c387f7fd1b204af71a02b3faa74fb7798 (diff) | |
parent | f9a2743c3529baab6de650aa3e3eb96de9386fec (diff) | |
download | git-4553d58f374c6bfcae6b4be528bbf11c18a7efe5.tar.gz |
Merge branch 'jl/maint-submodule-gitfile-awareness'
* jl/maint-submodule-gitfile-awareness:
Windows: start_command: Support non-NULL dir in struct child_process
Diffstat (limited to 'run-command.c')
-rw-r--r-- | run-command.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/run-command.c b/run-command.c index c8d53795ec..eb5c575629 100644 --- a/run-command.c +++ b/run-command.c @@ -342,8 +342,6 @@ fail_pipe: else if (cmd->out > 1) fhout = dup(cmd->out); - if (cmd->dir) - die("chdir in start_command() not implemented"); if (cmd->env) env = make_augmented_environ(cmd->env); @@ -353,7 +351,7 @@ fail_pipe: cmd->argv = prepare_shell_cmd(cmd->argv); } - cmd->pid = mingw_spawnvpe(cmd->argv[0], cmd->argv, env, + cmd->pid = mingw_spawnvpe(cmd->argv[0], cmd->argv, env, cmd->dir, fhin, fhout, fherr); failed_errno = errno; if (cmd->pid < 0 && (!cmd->silent_exec_failure || errno != ENOENT)) |