[Fusionforge-commits] FusionForge branch Branch_5_2 updated. 164a2d740375b4cd7b83870f1df182515bd822ec

Roland Mas lolando at fusionforge.org
Tue Feb 26 16:48:11 CET 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_2 has been updated
       via  164a2d740375b4cd7b83870f1df182515bd822ec (commit)
      from  ddaa4e3840a1eb2ee52325da46c6b10ea12b0a49 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 164a2d740375b4cd7b83870f1df182515bd822ec
Author: Roland Mas <lolando at debian.org>
Date:   Tue Feb 26 16:48:01 2013 +0100

    Obtain user's extra groups so as to be able to chgrp

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index ee0e223..5d47fce 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -280,7 +280,7 @@ class GitPlugin extends SCMPlugin {
 		$root = $params['root'];
 
 		$repodir = $root . '/users/' .  $user_name . '.git' ;
-		chgrp ($repodir, $unix_group);
+		system("su - $user_name -c 'chgrp $unix_group $repodir'");
 		if ($project->enableAnonSCM()) {
 			chmod ($repodir, 02755);
 		} else {

-----------------------------------------------------------------------

Summary of changes:
 src/plugins/scmgit/common/GitPlugin.class.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list