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

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


Author: lolando
Date: 2010-04-07 16:42:54 +0200 (Wed, 07 Apr 2010)
New Revision: 9404

Modified:
   trunk/gforge/plugins/scmgit/common/GitPlugin.class.php
Log:
Bugfixes

Modified: trunk/gforge/plugins/scmgit/common/GitPlugin.class.php
===================================================================
--- trunk/gforge/plugins/scmgit/common/GitPlugin.class.php	2010-04-07 14:42:43 UTC (rev 9403)
+++ trunk/gforge/plugins/scmgit/common/GitPlugin.class.php	2010-04-07 14:42:54 UTC (rev 9404)
@@ -214,8 +214,9 @@
 		$project_name = $project->getUnixName() ;
 		$root = $this->git_root . '/' . $project_name ;
 		$unix_group = 'scm_' . $project_name ;
+                system ("mkdir -p $root") ;
 
-		$main_repo = array ($root . '/' .  $project_name . '.git') ;
+		$main_repo = $root . '/' .  $project_name . '.git' ;
 		if (!is_file ("$main_repo/HEAD") && !is_dir("$main_repo/objects") && !is_dir("$main_repo/refs")) {
 			system ("GIT_DIR=\"$main_repo\" git init --bare --shared=group") ;
 			system ("GIT_DIR=\"$main_repo\" git update-server-info") ;
@@ -251,7 +252,7 @@
 		for ($i=0; $i<$rows; $i++) {
 			system ("mkdir -p $root/users") ;
 			$user_name = db_result($result,$i,'user_name');
-			$repodir = array ($root . '/users/' .  $user_name . '.git') ;
+			$repodir = $root . '/users/' .  $user_name . '.git' ;
 
 			if (!is_file ("$repodir/HEAD") && !is_dir("$repodir/objects") && !is_dir("$repodir/refs")) {
 				system ("git clone --bare $main_repo $repodir") ;




More information about the Fusionforge-commits mailing list