| 7889 | } |
| 7890 | |
| 7891 | static bool cbm_gitlab_hooks_path(const cbm_agent_registry_context_t *registry, char *path, |
| 7892 | size_t path_size) { |
| 7893 | const char *base = registry->options.home_dir; |
| 7894 | const char *suffix = ".gitlab/duo/hooks.json"; |
| 7895 | if (registry->options.is_windows && registry->options.appdata_dir && |
| 7896 | registry->options.appdata_dir[0]) { |
| 7897 | base = registry->options.appdata_dir; |
| 7898 | suffix = "GitLab/duo/hooks.json"; |
| 7899 | } |
| 7900 | int written = snprintf(path, path_size, "%s/%s", base, suffix); |
| 7901 | return written > 0 && (size_t)written < path_size; |
| 7902 | } |
| 7903 | |
| 7904 | static bool cbm_devin_user_dir(const cbm_agent_registry_context_t *registry, char *path, |
| 7905 | size_t path_size) { |
no outgoing calls
no test coverage detected