Skip to content

Commit a29aa47

Browse files
g-papegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent caa7dac commit a29aa47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin-help.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,7 @@ static void show_info_page(const char *git_cmd)
372372
const char *page = cmd_to_page(git_cmd);
373373
setenv("INFOPATH", system_path(GIT_INFO_PATH), 1);
374374
execlp("info", "info", "gitman", page, NULL);
375+
die("no info viewer handled the request");
375376
}
376377

377378
static void get_html_page_path(struct strbuf *page_path, const char *page)

0 commit comments

Comments
 (0)