stable
Clone or download
This patch removes the feature flag 'feature_flag_enable_pre_receive_command' and creates a new one called 'feature_flag_pre_receive_ignored_repos_id'. With the new feature flag, you specify the repos's ID for wich the pre-receive hook mechanism should be ignored, even if a wasm module is present for that repos. Exemple of setting the feature flag: - tuleap config-set feature_flag_pre_receive_ignored_repos_id 1 - tuleap config-set feature_flag_pre_receive_ignored_repos_id 3,6,8 If you don't want to ignore any repo you can simply set the feature flag to 0. How to test: - tuleap config-set feature_flag_pre_receive_ignored_repos_id 0 (verify that no repos that have a wasm module present are ignored) - tuleap config-set feature_flag_pre_receive_ignored_repos_id <repo-id-with-wasm-module-enabled> - tuleap git:pre-receive <your-repo-path> - Enter your references input - Your references should be accepted Part of story #31077: deploy a WebAssembly module to validate incoming references as a pre-receive hook Change-Id: Idccd3d874194b1e5f7167577f9561a28f191f023
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/git/db/uninstall.sql | +0 | −2 | Go to diff View file |
M | plugins/git/include/Hook/PreReceive/PreReceiveAction.php | +8 | −4 | Go to diff View file |
M | plugins/git/include/Hook/PreReceive/PreReceiveCommand.php | +4 | −2 | Go to diff View file |
M | plugins/git/include/gitPlugin.php | +3 | −7 | Go to diff View file |
M | plugins/git/tests/unit/Hook/PreReceive/PreReceiveActionTest.php | +0 | −2 | Go to diff View file |