Merge 'kn/for-each-tag-branch' into kn/for-each-tag
[gitweb.git] / builtin / help.c
index a1f5a0a097d8ce832987d596bb9e7026f7a0baf1..3422e7307998b9da91f85512084aeae515022a60 100644 (file)
@@ -171,7 +171,7 @@ static void exec_man_cmd(const char *cmd, const char *page)
 {
        struct strbuf shell_cmd = STRBUF_INIT;
        strbuf_addf(&shell_cmd, "%s %s", cmd, page);
-       execl("/bin/sh", "sh", "-c", shell_cmd.buf, (char *)NULL);
+       execl(SHELL_PATH, SHELL_PATH, "-c", shell_cmd.buf, (char *)NULL);
        warning(_("failed to exec '%s': %s"), cmd, strerror(errno));
 }