[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 6a121b56e2b815bade0b4b88c242143b0577ce43

Franck VILLAUME nerville at fusionforge.org
Sat Feb 15 12:22:57 CET 2014


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_3 has been updated
       via  6a121b56e2b815bade0b4b88c242143b0577ce43 (commit)
      from  382b239c4c5984927db71710c484a372e3cf355a (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 6a121b56e2b815bade0b4b88c242143b0577ce43
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Feb 15 12:21:47 2014 +0100

    plugin scmgit:
    - fix group ownership. needed when project disabled anonymous access
    - no need to mkdir, chgrp on loop. make it once for all

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index ff00617..be4ae9a 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -581,8 +581,11 @@ class GitPlugin extends SCMPlugin {
 						  'A',
 						  $this->getID()));
 		$rows = db_numrows ($result);
-		for ($i=0; $i<$rows; $i++) {
+		if (!is_dir($root.'/users')) {
 			system("mkdir -p $root/users");
+			chgrp($root.'/users', $unix_group);
+		}
+		for ($i=0; $i<$rows; $i++) {
 			$user_name = db_result($result,$i,'user_name');
 			$repodir = $root . '/users/' .  $user_name . '.git';
 

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

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


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list