[Fusionforge-commits] FusionForge branch Branch_5_3 updated. fbdeaf79ab1c341e08be3000e8d59e50db92a0a5

Roland Mas lolando at fusionforge.org
Fri Oct 3 09:30:52 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_3 has been updated
       via  fbdeaf79ab1c341e08be3000e8d59e50db92a0a5 (commit)
      from  4da364ad656e45c2d4cf8f422ac1c9cad121ed9a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit fbdeaf79ab1c341e08be3000e8d59e50db92a0a5
Author: Roland Mas <roland at gnurandal.com>
Date:   Fri Oct 3 09:30:44 2014 +0200

    Support Apache 2.2 (without mod_macro) in Git-over-WebDAV (not smart-http)

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index 2fb3828..3ed41a5 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -493,7 +493,21 @@ class GitPlugin extends SCMPlugin {
 			system("find $main_repo -type d | xargs chmod g+s");
 			if (forge_get_config('use_dav','scmgit')) {
 				$f = fopen(forge_get_config('config_path').'/httpd.conf.d/plugin-scmgit-dav.inc','a');
-				fputs($f,'Use Project '.$project_name."\n");
+				fputs($f,'<IfVersion >= 2.3>
+  Use Project '.$project_name.'
+</IfVersion>
+<IfVersion < 2.3>
+<Location "/scmrepos/git/'.$project_name.'">
+        DAV on
+        Options +Indexes -ExecCGI -FollowSymLinks -MultiViews
+        AuthType Basic
+        AuthName "Git repository: '.$project_name.'"
+        #The AuthUserFile filename is needed in the code. Please do not rename it.
+        AuthUserFile '.forge_get_config('data_path').'/gituser-authfile.'.$project_name.'
+        Require valid-user
+</Location>
+</IfVersion>
+\n');
 				fclose($f);
 				system(forge_get_config('httpd_reload_cmd','scmgit'));
 			}

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/scmgit/common/GitPlugin.class.php |   16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list