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.5.3~35^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a29aa47da79cfd0ef7ee0ef423e7e5a9a3cf07bd;p=git.git 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 e1eba778a..e1ade8edd 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)