summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2010-01-25 13:32:44 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-01-25 09:37:18 -0800
commit4cfb2a44bb79fd06763f740754902c31d5ea9ccc (patch)
tree4401d7a3bf4ded03d687e706e47dad83bdedf4b3
parentgitweb.js: Workaround for IE8 bug (diff)
downloadtgif-4cfb2a44bb79fd06763f740754902c31d5ea9ccc.tar.xz
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>
-rw-r--r--connect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/connect.c b/connect.c
index db965c9982..3a12562146 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;