From: Gerrit Pape Date: Tue, 27 Oct 2009 13:31:33 +0000 (+0000) Subject: help -i: properly error out if no info viewer can be found X-Git-Tag: v1.6.4.5~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a29aa47da79cfd0ef7ee0ef423e7e5a9a3cf07bd help -i: properly error out if no info viewer can be found With this commit, git help -i prints an error message and exits non-zero instead of being silent and exit code 0. Reported by Trent W. Buck through http://bugs.debian.org/537664 Signed-off-by: Gerrit Pape Signed-off-by: Junio C Hamano --- diff --git a/builtin-help.c b/builtin-help.c index e1eba778a5..e1ade8edd3 100644 --- a/builtin-help.c +++ b/builtin-help.c @@ -372,6 +372,7 @@ static void show_info_page(const char *git_cmd) const char *page = cmd_to_page(git_cmd); setenv("INFOPATH", system_path(GIT_INFO_PATH), 1); execlp("info", "info", "gitman", page, NULL); + die("no info viewer handled the request"); } static void get_html_page_path(struct strbuf *page_path, const char *page)