| 552 | } |
| 553 | |
| 554 | static int fetch(struct walker *walker, const struct object_id *oid) |
| 555 | { |
| 556 | struct walker_data *data = walker->data; |
| 557 | struct alt_base *altbase = data->alt; |
| 558 | |
| 559 | if (!fetch_object(walker, oid)) |
| 560 | return 0; |
| 561 | while (altbase) { |
| 562 | if (!http_fetch_pack(walker, altbase, oid)) |
| 563 | return 0; |
| 564 | fetch_alternates(walker, data->alt->base); |
| 565 | altbase = altbase->next; |
| 566 | } |
| 567 | return error("Unable to find %s under %s", oid_to_hex(oid), |
| 568 | data->alt->base); |
| 569 | } |
| 570 | |
| 571 | static int fetch_ref(struct walker *walker, struct ref *ref) |
| 572 | { |
nothing calls this directly
no test coverage detected