From: Roland Mas Date: Sun, 24 Mar 2013 13:35:59 +0000 (+0000) Subject: Fixed permissions for Git repositories created before anonscm is enabled X-Git-Tag: v5.2.2~15^2~19 X-Git-Url: https://scm.fusionforge.org/anonscm/gitweb?p=fusionforge%2Ffusionforge.git;a=commitdiff_plain;h=b68668f9378e2cce56c754e744e67bf425213de0 Fixed permissions for Git repositories created before anonscm is enabled --- diff --git a/src/plugins/scmgit/common/GitPlugin.class.php b/src/plugins/scmgit/common/GitPlugin.class.php index ce2ce70205..7d8413b575 100644 --- a/src/plugins/scmgit/common/GitPlugin.class.php +++ b/src/plugins/scmgit/common/GitPlugin.class.php @@ -344,12 +344,12 @@ class GitPlugin extends SCMPlugin { system ("echo \"Git repository for $project_name\" > $tmp_repo/description") ; system ("find $tmp_repo -type d | xargs chmod g+s") ; system ("chgrp -R $unix_group $tmp_repo") ; + system ("chmod -R g+wX,o+rX-w $tmp_repo") ; if ($project->enableAnonSCM()) { system ("chmod g+wX,o+rX-w $root") ; - system ("chmod -R g+wX,o+rX-w $tmp_repo") ; } else { system ("chmod g+wX,o-rwx $root") ; - system ("chmod -R g+wX,o-rwx $tmp_repo") ; + system ("chmod g+wX,o-rwx $tmp_repo") ; } $ret = true; /*