Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerrit Pape <pape@smarden.org>2009-10-27 16:31:33 +0300
committerJunio C Hamano <gitster@pobox.com>2009-10-28 09:05:24 +0300
commita29aa47da79cfd0ef7ee0ef423e7e5a9a3cf07bd (patch)
tree6ee08cfd744469307fec9f418d324f53ca790e44
parentcaa7dac163f7f7fc827da6fd4a5aba259a50e1ab (diff)
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>
-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)