| 5122 | } |
| 5123 | |
| 5124 | static int cbm_upsert_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 5125 | char command[CLI_BUF_8K]; |
| 5126 | if (cbm_build_augment_command(binary_path, command, sizeof(command)) != CLI_OK) { |
| 5127 | return CLI_ERR; |
| 5128 | } |
| 5129 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 5130 | .settings_path = hooks_path, |
| 5131 | .hook_event = "SessionStart", |
| 5132 | .command_str = command, |
| 5133 | .timeout_value = CMM_HOOK_TIMEOUT_SEC, |
| 5134 | .match_command_exact = command, |
| 5135 | }); |
| 5136 | } |
| 5137 | |
| 5138 | static int cbm_remove_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 5139 | char command[CLI_BUF_8K]; |
no test coverage detected