| 2635 | } |
| 2636 | |
| 2637 | static void create_object_directory(struct repository *repo) |
| 2638 | { |
| 2639 | struct strbuf path = STRBUF_INIT; |
| 2640 | size_t baselen; |
| 2641 | |
| 2642 | strbuf_addstr(&path, repo_get_object_directory(repo)); |
| 2643 | baselen = path.len; |
| 2644 | |
| 2645 | safe_create_dir(repo, path.buf, 1); |
| 2646 | |
| 2647 | strbuf_setlen(&path, baselen); |
| 2648 | strbuf_addstr(&path, "/pack"); |
| 2649 | safe_create_dir(repo, path.buf, 1); |
| 2650 | |
| 2651 | strbuf_setlen(&path, baselen); |
| 2652 | strbuf_addstr(&path, "/info"); |
| 2653 | safe_create_dir(repo, path.buf, 1); |
| 2654 | |
| 2655 | strbuf_release(&path); |
| 2656 | } |
| 2657 | |
| 2658 | static void separate_git_dir(const char *git_dir, const char *git_link) |
| 2659 | { |
no test coverage detected