[Fusionforge-commits] r16024 - branches/Branch_5_2/src/plugins/scmgit/common

Olivier Berger olberger at fusionforge.org
Fri Jul 20 14:18:56 CEST 2012


Author: olberger
Date: 2012-07-20 14:18:55 +0200 (Fri, 20 Jul 2012)
New Revision: 16024

Modified:
   branches/Branch_5_2/src/plugins/scmgit/common/GitPlugin.class.php
Log:
Make sure the group has read access to the git repos when via SSH

Modified: branches/Branch_5_2/src/plugins/scmgit/common/GitPlugin.class.php
===================================================================
--- branches/Branch_5_2/src/plugins/scmgit/common/GitPlugin.class.php	2012-07-20 07:51:43 UTC (rev 16023)
+++ branches/Branch_5_2/src/plugins/scmgit/common/GitPlugin.class.php	2012-07-20 12:18:55 UTC (rev 16024)
@@ -314,10 +314,10 @@
 			system ("chmod g+s $root") ;
 			if ($project->enableAnonSCM()) {
 				system ("chmod g+wX,o+rX-w $root") ;
-				system ("chmod -R g+wX,o+rX-w $main_repo") ;
+				system ("chmod -R g+rwX,o+rX-w $main_repo") ;
 			} else {
 				system ("chmod g+wX,o-rwx $root") ;
-				system ("chmod -R g+wX,o-rwx $main_repo") ;
+				system ("chmod -R g+rwX,o-rwx $main_repo") ;
 			}
 		} else {
 			$unix_user = forge_get_config('apache_user');




More information about the Fusionforge-commits mailing list