[Fusionforge-commits] FusionForge branch Branch_5_3 updated. 2998a5a57e4145408fbcb385f20c5de9f0b81a5b

Sylvain Beucler beuc-inria at fusionforge.org
Tue Mar 10 17:50:55 CET 2015


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  2998a5a57e4145408fbcb385f20c5de9f0b81a5b (commit)
      from  9617029042ed1462d332631f44562b5289db1143 (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 2998a5a57e4145408fbcb385f20c5de9f0b81a5b
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Tue Mar 10 17:42:54 2015 +0100

    scmgit: fix UGLY bug to fix permissions on secondary repos

diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php
index 7d51477..873468d 100644
--- a/src/plugins/scmgit/common/GitPlugin.class.php
+++ b/src/plugins/scmgit/common/GitPlugin.class.php
@@ -439,6 +439,7 @@ class GitPlugin extends SCMPlugin {
 			$unix_group = forge_get_config('apache_group');
 		}
 		system("chgrp $unix_group $root");
+		system("chmod g+s $root");
 
 		// Create main repository
 		$main_repo = $root . '/' .  $project_name . '.git';
@@ -560,11 +561,11 @@ class GitPlugin extends SCMPlugin {
 				fwrite($f, $description."\n");
 				fclose($f);
 				system("chgrp -R $unix_group $repodir");
-				system("chmod g+s $root");
+				system("chmod g+s $repodir");
 				if ($project->enableAnonSCM()) {
-					system("chmod -R g+wX,o+rX-w $main_repo");
+					system("chmod -R g+wX,o+rX-w $repodir");
 				} else {
-					system("chmod -R g+wX,o-rwx $main_repo");
+					system("chmod -R g+wX,o-rwx $repodir");
 				}
 			}
 		}

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

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


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list