| 8247 | } |
| 8248 | |
| 8249 | static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path, |
| 8250 | size_t path_size) { |
| 8251 | const char *base = registry->options.home_dir; |
| 8252 | const char *suffix = ".gitlab/duo/hooks.json"; |
| 8253 | if (registry->options.is_windows && registry->options.appdata_dir && |
| 8254 | registry->options.appdata_dir[0]) { |
| 8255 | base = registry->options.appdata_dir; |
| 8256 | suffix = "GitLab/duo/hooks.json"; |
| 8257 | } |
| 8258 | int written = snprintf(path, path_size, "%s/%s", base, suffix); |
| 8259 | return written > 0 && (size_t)written < path_size; |
| 8260 | } |
| 8261 | |
| 8262 | static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path, |
| 8263 | size_t path_size) { |
no outgoing calls
no test coverage detected