stable
Clone or download
Read-only
Upgrade the git:pre-receive-analyze command so that it accepts a repository ID and a git object reference as parameter. With these parameters it proceed to fetch informations on the given reference. How to test: - Execute the command tuleap git:pre-receive-analyze - If you gave an existing repo ID and reference, you shouldn't have any output Part of story #28845 have an hidden command executing custom command to determine if the reference should have been rejected Change-Id: Ib30189098ec7a3072bad8cf21594841b2ab8f16c
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/git/include/Hook/PreReceive/PreReceiveAnalyzeAction.php | +60 | −0 | Go to diff View file |
M | plugins/git/include/Hook/PreReceive/PreReceiveAnalyzeCommand.php | +22 | −38 | Go to diff View file |
A | plugins/git/include/Hook/PreReceive/PreReceiveCannotRetrieveReferenceException.php | +29 | −0 | Go to diff View file |
A | plugins/git/include/Hook/PreReceive/PreReceiveRepositoryNotFoundException.php | +29 | −0 | Go to diff View file |
M | plugins/git/include/gitPlugin.php | +6 | −1 | Go to diff View file |
A | plugins/git/tests/unit/Hook/PreReceive/PreReceiveAnalyzeActionTest.php | +105 | −0 | Go to diff View file |
D | plugins/git/tests/unit/Hook/PreReceive/PreReceiveAnalyzeCommandTest.php | +0 | −57 | Go to diff View file |