summaryrefslogtreecommitdiff
path: root/convert.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-01-17 15:58:15 -0800
committerJunio C Hamano <gitster@pobox.com>2010-01-17 15:58:15 -0800
commit4fa088209c81845e73756a4173a8c954e25958d2 (patch)
tree7590d45bb9b42df97f3bd2e8e833aa4561cf1028 /convert.c
parentfa232d457ebc1620ab31be504068c38403497179 (diff)
parent6396258368b76d432090c81096755dc1fbc89551 (diff)
downloadgit-4fa088209c81845e73756a4173a8c954e25958d2.tar.gz
Merge branch 'jk/run-command-use-shell'
* jk/run-command-use-shell: t4030, t4031: work around bogus MSYS bash path conversion diff: run external diff helper with shell textconv: use shell to run helper editor: use run_command's shell feature run-command: optimize out useless shell calls run-command: convert simple callsites to use_shell t0021: use $SHELL_PATH for the filter script run-command: add "use shell" option
Diffstat (limited to 'convert.c')
-rw-r--r--convert.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/convert.c b/convert.c
index 491e7141b4..950b1f9840 100644
--- a/convert.c
+++ b/convert.c
@@ -249,10 +249,11 @@ static int filter_buffer(int fd, void *data)
struct child_process child_process;
struct filter_params *params = (struct filter_params *)data;
int write_err, status;
- const char *argv[] = { "sh", "-c", params->cmd, NULL };
+ const char *argv[] = { params->cmd, NULL };
memset(&child_process, 0, sizeof(child_process));
child_process.argv = argv;
+ child_process.use_shell = 1;
child_process.in = -1;
child_process.out = fd;