stable

Clone or download

Read-only

Pull Requests references namespace is read-only for users

In every repositories when the pull request plugin is active the refs/tlpr/* namespace can not be written by users. The goal is to try what can go bad with PR and users manipulations. To test you can push some refs under the namespace refs/tlpr and then, with this contribution, force the regeneration of the gitolite configuration. This is part of story #11477: have a dedicated references for pullrequests Change-Id: Idcd5c77150eb282b64eea46147190bbc32222485

Modified Files

Name
M plugins/git/include/Git/Gitolite/ConfigPermissionsSerializer.class.php +31 −6 Go to diff View file
M plugins/git/include/Git/Permissions/FineGrainedPermission.php +2 −27 Go to diff View file
A plugins/git/include/Git/Permissions/GetProtectedGitReferences.php +46 −0 Go to diff View file
A plugins/git/include/Git/Permissions/Permission.php +39 −0 Go to diff View file
A plugins/git/include/Git/Permissions/ProtectedReferencePermission.php +58 −0 Go to diff View file
M plugins/git/include/Git_GitoliteDriver.class.php +3 −2 Go to diff View file
M plugins/git/include/autoload.php +5 −2 Go to diff View file
A plugins/git/phpunit/Gitolite/Git_Gitolite_ConfigPermissionsSerializerTest.php +76 −0 Go to diff View file
M plugins/git/tests/Git/Gitolite/ConfigPermissionsSerializerTest.php +17 −9 Go to diff View file
M plugins/git/tests/Git/Gitolite/ProjectSerializerTest.php +3 −2 Go to diff View file
M plugins/git/tests/Git_GitoliteDriverTest.php +3 −2 Go to diff View file
M plugins/git/tests/Git_GitoliteTestCase.class.php +3 −2 Go to diff View file
M plugins/pullrequest/include/pullrequestPlugin.class.php +8 −0 Go to diff View file