From badc0a6faeb44a91b3cc1bdb70ff001499369a6a Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Mon, 18 Mar 2024 19:16:18 +0530 Subject: [PATCH] minor warning added for http settings --- contrib/lib/Apache/gitolite.conf | 1 + t/fedora-root-smart-http-test-setup | 1 + t/manjaro-root-smart-http-test-setup | 1 + t/smart-http.root-setup | 1 + 4 files changed, 4 insertions(+) diff --git a/contrib/lib/Apache/gitolite.conf b/contrib/lib/Apache/gitolite.conf index 87ba843..97d4b46 100644 --- a/contrib/lib/Apache/gitolite.conf +++ b/contrib/lib/Apache/gitolite.conf @@ -11,6 +11,7 @@ SetEnv GIT_PROJECT_ROOT /var/www/gitolite-home/repositories ScriptAlias /git/ /var/www/gitolite-home/gitolite-source/src/gitolite-shell/ ScriptAlias /gitmob/ /var/www/gitolite-home/gitolite-source/src/gitolite-shell/ SetEnv GITOLITE_HTTP_HOME /var/www/gitolite-home +# WARNING: do not add a trailing slash to the value of GITOLITE_HTTP_HOME SetEnv GIT_HTTP_EXPORT_ALL # Setup LDAP trusted root certificate from your domain diff --git a/t/fedora-root-smart-http-test-setup b/t/fedora-root-smart-http-test-setup index 869d13d..36258ce 100755 --- a/t/fedora-root-smart-http-test-setup +++ b/t/fedora-root-smart-http-test-setup @@ -24,6 +24,7 @@ cd ~apache # should be /usr/share/httpd; you may want to check just to be safe export GITOLITE_HTTP_HOME=$PWD/gitolite-home +# WARNING: do not add a trailing slash to the value of GITOLITE_HTTP_HOME [[ -d gitolite-home ]] && { [[ $GITOLITE_TEST != y ]] && { diff --git a/t/manjaro-root-smart-http-test-setup b/t/manjaro-root-smart-http-test-setup index f254b55..dab1bf0 100755 --- a/t/manjaro-root-smart-http-test-setup +++ b/t/manjaro-root-smart-http-test-setup @@ -43,6 +43,7 @@ grep '^LoadModule cgi_module modules/mod_cgi.so' httpd.conf || cd ~http # should be /srv/http; you may want to check just to be safe export GITOLITE_HTTP_HOME=$PWD/gitolite-home +# WARNING: do not add a trailing slash to the value of GITOLITE_HTTP_HOME [[ -d gitolite-home ]] && { [[ $GITOLITE_TEST != y ]] && { diff --git a/t/smart-http.root-setup b/t/smart-http.root-setup index f22dcb5..900282d 100755 --- a/t/smart-http.root-setup +++ b/t/smart-http.root-setup @@ -46,6 +46,7 @@ $bsd cd /tmp/usr.share.httpd rm -rf gitolite-home mkdir gitolite-home export GITOLITE_HTTP_HOME=$PWD/gitolite-home +# WARNING: do not add a trailing slash to the value of GITOLITE_HTTP_HOME # get the gitolite sources cd gitolite-home -- 2.11.4.GIT