| 9292 | } |
| 9293 | |
| 9294 | static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path, |
| 9295 | size_t path_size) { |
| 9296 | const char *base = registry->options.home_dir; |
| 9297 | const char *suffix = ".gitlab/duo/hooks.json"; |
| 9298 | if (registry->options.is_windows && registry->options.appdata_dir && |
| 9299 | registry->options.appdata_dir[0]) { |
| 9300 | base = registry->options.appdata_dir; |
| 9301 | suffix = "GitLab/duo/hooks.json"; |
| 9302 | } |
| 9303 | int written = snprintf(path, path_size, "%s/%s", base, suffix); |
| 9304 | return written > 0 && (size_t)written < path_size; |
| 9305 | } |
| 9306 | |
| 9307 | static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path, |
| 9308 | size_t path_size) { |
no outgoing calls
no test coverage detected