diff options
Diffstat (limited to 'git-browse-help.sh')
-rwxr-xr-x | git-browse-help.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-browse-help.sh b/git-browse-help.sh index b465911c9a..10b0a36a3d 100755 --- a/git-browse-help.sh +++ b/git-browse-help.sh @@ -39,7 +39,7 @@ valid_tool() { } init_browser_path() { - test -z "$GIT_DIR" || browser_path=`git config browser.$1.path` + browser_path=`git config browser.$1.path` test -z "$browser_path" && browser_path=$1 } @@ -71,7 +71,7 @@ do shift done -if test -z "$browser" && test -n "$GIT_DIR" +if test -z "$browser" then for opt in "help.browser" "web.browser" do |