From 4cfb2a44bb79fd06763f740754902c31d5ea9ccc Mon Sep 17 00:00:00 2001 From: Johannes Sixt Date: Mon, 25 Jan 2010 13:32:44 +0100 Subject: [PATCH] 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 --- connect.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.30.2