diff options
author | Jeff King <peff@peff.net> | 2009-12-30 05:53:57 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-05 23:41:50 -0800 |
commit | ac0ba18df0c58decfb128336bab51a172c77abc0 (patch) | |
tree | 4c36514cde57577ad2533e87decccdaa0c939c6e /convert.c | |
parent | t0021: use $SHELL_PATH for the filter script (diff) | |
download | tgif-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |