| 399 | } |
| 400 | |
| 401 | static int fetch_indices(struct walker *walker, struct alt_base *repo) |
| 402 | { |
| 403 | int ret; |
| 404 | |
| 405 | if (repo->got_indices) |
| 406 | return 0; |
| 407 | |
| 408 | if (walker->get_verbosely) |
| 409 | fprintf(stderr, "Getting pack list for %s\n", repo->base); |
| 410 | |
| 411 | switch (http_get_info_packs(repo->base, &repo->packs)) { |
| 412 | case HTTP_OK: |
| 413 | case HTTP_MISSING_TARGET: |
| 414 | repo->got_indices = 1; |
| 415 | ret = 0; |
| 416 | break; |
| 417 | default: |
| 418 | repo->got_indices = 0; |
| 419 | ret = -1; |
| 420 | } |
| 421 | |
| 422 | return ret; |
| 423 | } |
| 424 | |
| 425 | static int http_fetch_pack(struct walker *walker, struct alt_base *repo, |
| 426 | const struct object_id *oid) |
no test coverage detected