| 333 | } |
| 334 | |
| 335 | static void add_oids_to_set(const struct oid_array *array, |
| 336 | struct oidset *set) |
| 337 | { |
| 338 | if (!array) |
| 339 | return; |
| 340 | |
| 341 | for (size_t i = 0; i < array->nr; i++) { |
| 342 | struct object_id *oid = &array->oid[i]; |
| 343 | if (!odb_has_object(the_repository->objects, oid, 0)) |
| 344 | die(_("the object %s does not exist"), oid_to_hex(oid)); |
| 345 | |
| 346 | oidset_insert(set, oid); |
| 347 | } |
| 348 | } |
| 349 | |
| 350 | static int find_common(struct fetch_negotiator *negotiator, |
| 351 | struct fetch_pack_args *args, |
no test coverage detected