projects
/
fusionforge
/
fusionforge.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
94be024
)
Bugfixes
author
Roland Mas
<lolando@debian.org>
Wed, 7 Apr 2010 14:43:05 +0000
(14:43 +0000)
committer
Roland Mas
<lolando@debian.org>
Wed, 7 Apr 2010 14:43:05 +0000
(14:43 +0000)
gforge/plugins/scmgit/common/GitPlugin.class.php
patch
|
blob
|
history
diff --git
a/gforge/plugins/scmgit/common/GitPlugin.class.php
b/gforge/plugins/scmgit/common/GitPlugin.class.php
index 0e204c1e5015a501b989a9e8240b643610fae8ea..3c6eba807df6fa6985f84dfacb151628f6353857 100644
(file)
--- a/
gforge/plugins/scmgit/common/GitPlugin.class.php
+++ b/
gforge/plugins/scmgit/common/GitPlugin.class.php
@@
-94,8
+94,7
@@
class GitPlugin extends SCMPlugin {
$user_id = db_result($result,$i,'user_id');
$user_name = db_result($result,$i,'user_name');
$real_name = db_result($result,$i,'realname');
$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>';
}
}
$b .= '</p>';
}
@@
-256,6
+255,7
@@
class GitPlugin extends SCMPlugin {
if (!is_file ("$repodir/HEAD") && !is_dir("$repodir/objects") && !is_dir("$repodir/refs")) {
system ("git clone --bare $main_repo $repodir") ;
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") ;
}
system ("echo \"Git repository for user $owner in project $project_name\" > $repodir/description") ;
system ("chown -R $user_name:$unix_group $repodir") ;
}