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 <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johannes Sixt committed
Jan 25, 2010 at 13:32 UTC
4cfb2a44bb79fd06763f740754902c31d5ea9ccc
1 file changed
+1
-2
connect.c
+1
-2
@@ -613,8 +613,7 @@ struct child_process *git_connect(int fd[2], const char *url_orig,
613
NULL
614
};
615
conn->env = env;
616
- *arg++ = "sh";
617
- *arg++ = "-c";
616
+ conn->use_shell = 1;
617
}
618
*arg++ = cmd.buf;
619
*arg = NULL;