help.c: use SHELL_PATH instead of hard-coded "/bin/sh"

If the user has set SHELL_PATH in the Makefile then we should respect that value and use it. Signed-off-by: Kyle J. McKay <mackyle@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Kyle J. McKay committed Mar 7, 2015 at 21:08 UTC b680a86a86f44444643b9be5bf4822feda128cd0
1 file changed +1 -1
builtin/help.c
+1 -1
@@ -171,7 +171,7 @@ static void exec_man_cmd(const char *cmd, const char *page)
171 {
172 struct strbuf shell_cmd = STRBUF_INIT;
173 strbuf_addf(&shell_cmd, "%s %s", cmd, page);
174 - execl("/bin/sh", "sh", "-c", shell_cmd.buf, (char *)NULL);
174 + execl(SHELL_PATH, SHELL_PATH, "-c", shell_cmd.buf, (char *)NULL);
175 warning(_("failed to exec '%s': %s"), cmd, strerror(errno));
176 }
177