| 549 | } |
| 550 | |
| 551 | static int got_oid(struct upload_pack_data *data, |
| 552 | const char *hex, struct object_id *oid) |
| 553 | { |
| 554 | if (get_oid_hex(hex, oid)) |
| 555 | die("git upload-pack: expected SHA1 object, got '%s'", hex); |
| 556 | if (!odb_has_object(the_repository->objects, oid, 0)) |
| 557 | return -1; |
| 558 | return do_got_oid(data, oid); |
| 559 | } |
| 560 | |
| 561 | static int ok_to_give_up(struct upload_pack_data *data) |
| 562 | { |
no test coverage detected