summaryrefslogtreecommitdiff
path: root/convert.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2009-12-30 05:53:57 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-05 23:41:50 -0800
commitac0ba18df0c58decfb128336bab51a172c77abc0 (patch)
tree4c36514cde57577ad2533e87decccdaa0c939c6e /convert.c
parentt0021: use $SHELL_PATH for the filter script (diff)
downloadtgif-ac0ba18df0c58decfb128336bab51a172c77abc0.tar.xz
run-command: convert simple callsites to use_shell
Now that we have the use_shell feature, these callsites can all be converted with small changes. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
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;