summaryrefslogtreecommitdiff
path: root/builtin-help.c
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2009-10-27 13:31:33 +0000
committerJunio C Hamano <gitster@pobox.com>2009-10-27 23:05:24 -0700
commita29aa47da79cfd0ef7ee0ef423e7e5a9a3cf07bd (patch)
tree6ee08cfd744469307fec9f418d324f53ca790e44 /builtin-help.c
parentcaa7dac163f7f7fc827da6fd4a5aba259a50e1ab (diff)
downloadgit-a29aa47da79cfd0ef7ee0ef423e7e5a9a3cf07bd.tar.gz
help -i: properly error out if no info viewer can be found
With this commit, git help -i <cmd> 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 <pape@smarden.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-help.c')
-rw-r--r--builtin-help.c1
1 files changed, 1 insertions, 0 deletions
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)