| 8032 | } |
| 8033 | |
| 8034 | static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path, |
| 8035 | size_t path_size) { |
| 8036 | const char *base = registry->options.home_dir; |
| 8037 | const char *suffix = ".gitlab/duo/hooks.json"; |
| 8038 | if (registry->options.is_windows && registry->options.appdata_dir && |
| 8039 | registry->options.appdata_dir[0]) { |
| 8040 | base = registry->options.appdata_dir; |
| 8041 | suffix = "GitLab/duo/hooks.json"; |
| 8042 | } |
| 8043 | int written = snprintf(path, path_size, "%s/%s", base, suffix); |
| 8044 | return written > 0 && (size_t)written < path_size; |
| 8045 | } |
| 8046 | |
| 8047 | static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path, |
| 8048 | size_t path_size) { |
no outgoing calls
no test coverage detected