git-gui: use `git --html-path` to get the location of installed HTML docs
commit3eb5682b0b1c16c1b9232f04aff13bd189573b4d
authorMarkus Heidelberg <markus.heidelberg@web.de>
Sun, 5 Apr 2009 01:48:21 +0000 (5 03:48 +0200)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 5 Apr 2009 19:29:10 +0000 (5 12:29 -0700)
treee9482edd0edf9f313fbf331563d1a09840e36cc6
parent122ee5442039fd006911cd964b149c776476ee8d
git-gui: use `git --html-path` to get the location of installed HTML docs

Previously a hardcoded path $GIT_EXEC_PATH/../Documentation/ was used to
search for the documentation, when the user has asked for it via menu
"Help -> Online Documentation".
This didn't work for the default directory structure.

To find the path reliably, use the new git command line option, which
returns the correct path.

If the output of `git --html-path` is empty because git is not found or
the option is not yet supported in the installed git, the documentation
from kernel.org is launched. There is no additional guessing of the
right location of the installed docs.

Signed-off-by: Markus Heidelberg <markus.heidelberg@web.de>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh