| 336 | } |
| 337 | |
| 338 | static void populate_remote_urls(struct config_include_data *inc) |
| 339 | { |
| 340 | struct config_options opts; |
| 341 | |
| 342 | opts = *inc->opts; |
| 343 | opts.unconditional_remote_url = 1; |
| 344 | |
| 345 | inc->remote_urls = xmalloc(sizeof(*inc->remote_urls)); |
| 346 | string_list_init_dup(inc->remote_urls); |
| 347 | config_with_options(add_remote_url, inc->remote_urls, |
| 348 | inc->config_source, inc->repo, &opts); |
| 349 | } |
| 350 | |
| 351 | static int forbid_remote_url(const char *var, const char *value UNUSED, |
| 352 | const struct config_context *ctx UNUSED, |
no test coverage detected