| 376 | } |
| 377 | |
| 378 | static void read_empty(const struct object_id *oid) |
| 379 | { |
| 380 | struct child_process cmd = CHILD_PROCESS_INIT; |
| 381 | |
| 382 | strvec_pushl(&cmd.args, "read-tree", "-m", "-u", |
| 383 | empty_tree_oid_hex(the_repository->hash_algo), |
| 384 | oid_to_hex(oid), NULL); |
| 385 | cmd.git_cmd = 1; |
| 386 | |
| 387 | if (run_command(&cmd)) |
| 388 | die(_("read-tree failed")); |
| 389 | } |
| 390 | |
| 391 | static void reset_hard(const struct object_id *oid) |
| 392 | { |
no test coverage detected