| 4581 | } |
| 4582 | |
| 4583 | static int cbm_upsert_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 4584 | char command[CLI_BUF_8K]; |
| 4585 | if (cbm_build_augment_command(binary_path, command, sizeof(command)) != CLI_OK) { |
| 4586 | return CLI_ERR; |
| 4587 | } |
| 4588 | return upsert_hooks_json((hooks_upsert_args_t){ |
| 4589 | .settings_path = hooks_path, |
| 4590 | .hook_event = "SessionStart", |
| 4591 | .command_str = command, |
| 4592 | .timeout_value = CMM_HOOK_TIMEOUT_SEC, |
| 4593 | .match_command_exact = command, |
| 4594 | }); |
| 4595 | } |
| 4596 | |
| 4597 | static int cbm_remove_gitlab_session_hook(const char *hooks_path, const char *binary_path) { |
| 4598 | char command[CLI_BUF_8K]; |
no test coverage detected