| 789 | } |
| 790 | |
| 791 | void safe_create_dir(struct repository *repo, const char *dir, int share) |
| 792 | { |
| 793 | if (mkdir(dir, 0777) < 0) { |
| 794 | if (errno != EEXIST) { |
| 795 | perror(dir); |
| 796 | exit(1); |
| 797 | } |
| 798 | } |
| 799 | else if (share && adjust_shared_perm(repo, dir)) |
| 800 | die(_("Could not make %s writable by group"), dir); |
| 801 | } |
| 802 | |
| 803 | int safe_create_dir_in_gitdir(struct repository *repo, const char *path) |
| 804 | { |
no test coverage detected