diff options
Diffstat (limited to 'git-browse-help.sh')
-rwxr-xr-x | git-browse-help.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/git-browse-help.sh b/git-browse-help.sh index 76eff01bab..817b3792c8 100755 --- a/git-browse-help.sh +++ b/git-browse-help.sh @@ -70,9 +70,13 @@ do done if test -z "$browser"; then - browser=`git config web.browser` + for opt in "help.browser" "web.browser" + do + browser="`git config $opt`" + test -z "$browser" || break + done if test -n "$browser" && ! valid_tool "$browser"; then - echo >&2 "git config option web.browser set to unknown browser: $browser" + echo >&2 "git config option $opt set to unknown browser: $browser" echo >&2 "Resetting to default..." unset browser fi |