| 4990 | } |
| 4991 | |
| 4992 | static int cbm_upsert_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 4993 | char command[CLI_BUF_8K]; |
| 4994 | if (cbm_build_augment_command(binary_path, command, sizeof(command)) != CLI_OK) { |
| 4995 | return CLI_ERR; |
| 4996 | } |
| 4997 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 4998 | .settings_path = hooks_path, |
| 4999 | .hook_event = "SessionStart", |
| 5000 | .command_str = command, |
| 5001 | .timeout_value = CMM_HOOK_TIMEOUT_SEC, |
| 5002 | .match_command_exact = command, |
| 5003 | }); |
| 5004 | } |
| 5005 | |
| 5006 | static int cbm_remove_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 5007 | char command[CLI_BUF_8K]; |
no test coverage detected