From: Johannes Sixt Date: Mon, 25 Jan 2010 12:32:44 +0000 (+0100) Subject: git_connect: use use_shell instead of explicit "sh", "-c" X-Git-Tag: v1.7.0-rc1~40 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=4cfb2a44bb79fd06763f740754902c31d5ea9ccc;p=git-core%2Fgit.git git_connect: use use_shell instead of explicit "sh", "-c" This is a followup to ac0ba18 (run-command: convert simple callsites to use_shell, 2009-12-30), for consistency. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- diff --git a/connect.c b/connect.c index db965c998..3a1256214 100644 --- a/connect.c +++ b/connect.c @@ -613,8 +613,7 @@ struct child_process *git_connect(int fd[2], const char *url_orig, NULL }; conn->env = env; - *arg++ = "sh"; - *arg++ = "-c"; + conn->use_shell = 1; } *arg++ = cmd.buf; *arg = NULL;