summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2010-01-25 12:32:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-01-25 17:37:18 (GMT)
commit4cfb2a44bb79fd06763f740754902c31d5ea9ccc (patch)
tree4401d7a3bf4ded03d687e706e47dad83bdedf4b3 /connect.c
parentb2c2e4c22c6a4fe151f02380d247cf3d9a9d5d1e (diff)
downloadgit-4cfb2a44bb79fd06763f740754902c31d5ea9ccc.zip
git-4cfb2a44bb79fd06763f740754902c31d5ea9ccc.tar.gz
git-4cfb2a44bb79fd06763f740754902c31d5ea9ccc.tar.bz2
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>
Diffstat (limited to 'connect.c')
-rw-r--r--connect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/connect.c b/connect.c
index db965c9..3a12562 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;