summaryrefslogtreecommitdiff
path: root/git-instaweb.sh
diff options
context:
space:
mode:
authorSean Estabrooks <seanlkml@sympatico.ca>2009-07-18 09:45:44 -0700
committerJunio C Hamano <gitster@pobox.com>2009-07-26 11:27:27 -0700
commite24c76bf09576e0d197db1e40dff655a75e9efe1 (patch)
tree388f1017b0a3947ab8e59ecd9b35bd97e53f21bb /git-instaweb.sh
parentd1926f63ec93e84dba1a54c5de898fb517d9ca59 (diff)
downloadgit-e24c76bf09576e0d197db1e40dff655a75e9efe1.tar.gz
Trivial path quoting fixes in git-instaweb
Bodo Schlecht noticed that Instaweb didn't propely quote all path instances in the Apache config file it generated. Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-instaweb.sh')
-rwxr-xr-xgit-instaweb.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-instaweb.sh b/git-instaweb.sh
index 5f4419b69b..32f6496b0d 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -256,7 +256,7 @@ apache2_conf () {
mkdir -p "$GIT_DIR/gitweb/logs"
bind=
test x"$local" = xtrue && bind='127.0.0.1:'
- echo 'text/css css' > $fqgitdir/mime.types
+ echo 'text/css css' > "$fqgitdir/mime.types"
cat > "$conf" <<EOF
ServerName "git-instaweb"
ServerRoot "$fqgitdir/gitweb"
@@ -272,7 +272,7 @@ EOF
fi
done
cat >> "$conf" <<EOF
-TypesConfig $fqgitdir/mime.types
+TypesConfig "$fqgitdir/mime.types"
DirectoryIndex gitweb.cgi
EOF