aboutsummaryrefslogtreecommitdiff
path: root/ll-merge.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-12-30 05:53:57 -0500
committerJunio C Hamano <gitster@pobox.com>2010-01-05 23:41:50 -0800
commitac0ba18df0c58decfb128336bab51a172c77abc0 (patch)
tree4c36514cde57577ad2533e87decccdaa0c939c6e /ll-merge.c
parentfa7151a61edf585abdbb3d2831e7992bf3925671 (diff)
downloadgit-ac0ba18df0c58decfb128336bab51a172c77abc0.tar.gz
git-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 'll-merge.c')
-rw-r--r--ll-merge.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ll-merge.c b/ll-merge.c
index 2d6b6d6cb..18511e281 100644
--- a/ll-merge.c
+++ b/ll-merge.c
@@ -175,7 +175,7 @@ static int ll_ext_merge(const struct ll_merge_driver *fn,
{ "B", temp[2] },
{ NULL }
};
- const char *args[] = { "sh", "-c", NULL, NULL };
+ const char *args[] = { NULL, NULL };
int status, fd, i;
struct stat st;
@@ -190,8 +190,8 @@ static int ll_ext_merge(const struct ll_merge_driver *fn,
strbuf_expand(&cmd, fn->cmdline, strbuf_expand_dict_cb, &dict);
- args[2] = cmd.buf;
- status = run_command_v_opt(args, 0);
+ args[0] = cmd.buf;
+ status = run_command_v_opt(args, RUN_USING_SHELL);
fd = open(temp[1], O_RDONLY);
if (fd < 0)
goto bad;