summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-02 11:56:16 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-02 18:04:56 (GMT)
commit6ee030d68adc1fb51c3abda458999fa7afc43db5 (patch)
tree0b4bdce97798c94618b094013248f70fb393daf0
parent07002287f3e219a16a948a8a6eca0a41162a491f (diff)
downloadgit-6ee030d68adc1fb51c3abda458999fa7afc43db5.zip
git-6ee030d68adc1fb51c3abda458999fa7afc43db5.tar.gz
git-6ee030d68adc1fb51c3abda458999fa7afc43db5.tar.bz2
instaweb: fix unportable ';' usage in sed
Hint taken from Johannes. I've tested this with sed --posix on my system with GNU sed and it works fine with and also without it. Further portability testing/review would be good. Signed-off-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-instaweb.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-instaweb.sh b/git-instaweb.sh
index 51067d9..69aef3c 100755
--- a/git-instaweb.sh
+++ b/git-instaweb.sh
@@ -194,9 +194,9 @@ EOF
}
script='
-s#^\(my\|our\) $projectroot =.*#\1 $projectroot = "'`dirname $fqgitdir`'";#;
-s#\(my\|our\) $gitbin =.*#\1 $gitbin = "'$GIT_EXEC_PATH'";#;
-s#\(my\|our\) $projects_list =.*#\1 $projects_list = $projectroot;#;
+s#^\(my\|our\) $projectroot =.*#\1 $projectroot = "'`dirname $fqgitdir`'";#
+s#\(my\|our\) $gitbin =.*#\1 $gitbin = "'$GIT_EXEC_PATH'";#
+s#\(my\|our\) $projects_list =.*#\1 $projects_list = $projectroot;#
s#\(my\|our\) $git_temp =.*#\1 $git_temp = "'$fqgitdir/gitweb/tmp'";#'
gitweb_cgi () {