diff --git a/help.c b/help.c index 90d5a03345..f89164a760 100644 --- a/help.c +++ b/help.c @@ -245,15 +245,16 @@ static void show_man_page(const char *git_cmd) { #ifdef __MINGW32__ { + const char* exec_path = git_exec_path(); char *htmlpath = make_native_separator( - mkpath("%s/doc/git/html/%s.html" - , git_install_prefix() - , git_cmd) + mkpath("%s/../doc/git/html/%s.html" + , exec_path + , git_cmd) ); if (!file_exists(htmlpath)) { htmlpath = make_native_separator( - mkpath("%s/doc/git/html/git-%s.html" - , git_install_prefix() + mkpath("%s/../doc/git/html/git-%s.html" + , exec_path , git_cmd) ); if (!file_exists(htmlpath)) {