stable
Clone or download
Read-only
part of story #26802 have smart commit with Tuleap Git How to test: - forge your database to allow artifact closure in a git repository - commit in the default branch (master or main) - push that commit - You should see a debug line in git_syslog like the following: [debug] Dispatched a redis message to handle git push - if you commit & push on another branch, the debug line should not appear in the logs. - if you push multiple branches including the default branch, the line should appear. Change-Id: I30f87fdc24cd0fb6c0654c109093333347e9f74b
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/git/hooks/post-receive.php | +2 | −1 | Go to diff View file |
A | plugins/git/include/Hook/DefaultBranchVerifier.php | +38 | −0 | Go to diff View file |
M | plugins/git/include/Hook/PostReceive.php | +7 | −3 | Go to diff View file |
A | plugins/git/include/Hook/VerifyIsDefaultBranch.php | +28 | −0 | Go to diff View file |
M | plugins/git/tests/unit/Hook/PostReceiveTest.php | +27 | −14 | Go to diff View file |
A | plugins/git/tests/unit/Stub/VerifyIsDefaultBranchStub.php | +47 | −0 | Go to diff View file |