summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Christian Couder <chriscool@tuxfamily.org>2008-02-09 07:11:01 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-02-09 23:46:07 -0800
commit193ad4f63c511948050079ddbe8c9b7342bf85a4 (patch)
tree197673e805255aa2f9347397171d6cea0b03c2be
parentDocumentation: instaweb: add 'git-web--browse' information. (diff)
downloadtgif-193ad4f63c511948050079ddbe8c9b7342bf85a4.tar.xz
web--browse: Add a few quotes in 'init_browser_path'.
These changes were made to the 'init_browser_path' function in 'git-instaweb.sh', but was not in 'git-web--browse.sh'. [jc: the quoting was screwy and did not quote $1 correctly, so I fixed it up.] Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-xgit-web--browse.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-web--browse.sh b/git-web--browse.sh
index 2c51f361d1..3ade500e0c 100755
--- a/git-web--browse.sh
+++ b/git-web--browse.sh
@@ -34,8 +34,8 @@ valid_tool() {
}
init_browser_path() {
- browser_path=`git config browser.$1.path`
- test -z "$browser_path" && browser_path=$1
+ browser_path=$(git "config browser.$1.path")
+ test -z "$browser_path" && browser_path="$1"
}
while test $# != 0