| 706 | } |
| 707 | |
| 708 | static int fetch_indices(void) |
| 709 | { |
| 710 | int ret; |
| 711 | |
| 712 | if (push_verbosely) |
| 713 | fprintf(stderr, "Getting pack list\n"); |
| 714 | |
| 715 | switch (http_get_info_packs(repo->url, &repo->packs)) { |
| 716 | case HTTP_OK: |
| 717 | case HTTP_MISSING_TARGET: |
| 718 | ret = 0; |
| 719 | break; |
| 720 | default: |
| 721 | ret = -1; |
| 722 | } |
| 723 | |
| 724 | return ret; |
| 725 | } |
| 726 | |
| 727 | static void one_remote_object(const struct object_id *oid) |
| 728 | { |
no test coverage detected