[Fusionforge-commits] r9410 - trunk/gforge/plugins/scmgit/common

Roland Mas lolando at libremir.placard.fr.eu.org
Wed Apr 7 16:44:02 CEST 2010


Author: lolando
Date: 2010-04-07 16:44:02 +0200 (Wed, 07 Apr 2010)
New Revision: 9410

Modified:
   trunk/gforge/plugins/scmgit/common/GitPlugin.class.php
Log:
Fix permissions on users' git repositories in a simpler way

Modified: trunk/gforge/plugins/scmgit/common/GitPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmgit/common/GitPlugin.class.php	2010-04-07 14:43:50 UTC (rev 9409)
+++ trunk/gforge/plugins/scmgit/common/GitPlugin.class.php	2010-04-07 14:44:02 UTC (rev 9410)
@@ -273,12 +273,12 @@
 				system ("echo \"Git repository for user $owner in project $project_name\" > $repodir/description") ;
 				system ("chown -R $user_name:$unix_group $repodir") ;
 			}
-			if ($project->enableAnonSCM()) {
-				system ("chmod -R g+rX-w,o+rX-w $repodir") ;
-			} else {
-				system ("chmod -R g+rX-w,o-rwx $repodir") ;
-			}			
 		}
+		if ($project->enableAnonSCM()) {
+			system ("chmod -R g+rX-w,o+rX-w $root/users") ;
+		} else {
+			system ("chmod -R g+rX-w,o-rwx $root/users") ;
+		}
 	}
 
 	function updateRepositoryList ($params) {




More information about the Fusionforge-commits mailing list