| 4438 | } |
| 4439 | |
| 4440 | static int cbm_upsert_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 4441 | char command[CLI_BUF_8K]; |
| 4442 | if (cbm_build_augment_command(binary_path, command, sizeof(command)) != CLI_OK) { |
| 4443 | return CLI_ERR; |
| 4444 | } |
| 4445 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 4446 | .settings_path = hooks_path, |
| 4447 | .hook_event = "SessionStart", |
| 4448 | .command_str = command, |
| 4449 | .timeout_value = CMM_HOOK_TIMEOUT_SEC, |
| 4450 | .match_command_exact = command, |
| 4451 | }); |
| 4452 | } |
| 4453 | |
| 4454 | static int cbm_remove_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 4455 | char command[CLI_BUF_8K]; |
no test coverage detected