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

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


Author: lolando
Date: 2010-04-07 16:43:05 +0200 (Wed, 07 Apr 2010)
New Revision: 9405

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:54 UTC (rev 9404)
+++ trunk/gforge/plugins/scmgit/common/GitPlugin.class.php	2010-04-07 14:43:05 UTC (rev 9405)
@@ -94,8 +94,7 @@
 				$user_id = db_result($result,$i,'user_id');
 				$user_name = db_result($result,$i,'user_name');
 				$real_name = db_result($result,$i,'realname');
-				$repos[] = array ($root . '/users/' .  $user_name . '.git' => $user_name) ;
-				$b .= '<tt>git clone '.util_make_url ('/anonscm/git/'.$project->getUnixName().'/users/'.$user_name.'.git').'</tt> ('.util_make_link_u ($user_name, $user_id, $realname).')<br />';
+				$b .= '<tt>git clone '.util_make_url ('/anonscm/git/'.$project->getUnixName().'/users/'.$user_name.'.git').'</tt> ('.util_make_link_u ($user_name, $user_id, $real_name).')<br />';
 			}
 			$b .= '</p>';
 		}
@@ -256,6 +255,7 @@
 
 			if (!is_file ("$repodir/HEAD") && !is_dir("$repodir/objects") && !is_dir("$repodir/refs")) {
 				system ("git clone --bare $main_repo $repodir") ;
+				system ("GIT_DIR=\"$repodir\" git update-server-info") ;
 				system ("echo \"Git repository for user $owner in project $project_name\" > $repodir/description") ;
 				system ("chown -R $user_name:$unix_group $repodir") ;
 			}




More information about the Fusionforge-commits mailing list