Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
submodule: additional regression tests for relative URLs
[gitweb.git]
/
run-command.c
diff --git
a/run-command.c
b/run-command.c
index 5be1b4b5ba6ec9c9772b03d7c7bb09256476ae00..606791dc674a1d24459d85504f0c981634b52020 100644
(file)
--- a/
run-command.c
+++ b/
run-command.c
@@
-156,7
+156,11
@@
static const char **prepare_shell_cmd(const char **argv)
die("BUG: shell command is empty");
if (strcspn(argv[0], "|&;<>()$`\\\"' \t\n*?[#~=%") != strlen(argv[0])) {
+#ifndef WIN32
nargv[nargc++] = SHELL_PATH;
+#else
+ nargv[nargc++] = "sh";
+#endif
nargv[nargc++] = "-c";
if (argc < 2)