| 8094 | } |
| 8095 | |
| 8096 | static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path, |
| 8097 | size_t path_size) { |
| 8098 | const char *base = registry->options.home_dir; |
| 8099 | const char *suffix = ".gitlab/duo/hooks.json"; |
| 8100 | if (registry->options.is_windows && registry->options.appdata_dir && |
| 8101 | registry->options.appdata_dir[0]) { |
| 8102 | base = registry->options.appdata_dir; |
| 8103 | suffix = "GitLab/duo/hooks.json"; |
| 8104 | } |
| 8105 | int written = snprintf(path, path_size, "%s/%s", base, suffix); |
| 8106 | return written > 0 && (size_t)written < path_size; |
| 8107 | } |
| 8108 | |
| 8109 | static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path, |
| 8110 | size_t path_size) { |
no outgoing calls
no test coverage detected