| 121 | } |
| 122 | |
| 123 | static int setup_tmp_objdir(const char *root) |
| 124 | { |
| 125 | char *path; |
| 126 | int ret = 0; |
| 127 | |
| 128 | path = xstrfmt("%s/pack", root); |
| 129 | ret = mkdir(path, 0777); |
| 130 | free(path); |
| 131 | |
| 132 | return ret; |
| 133 | } |
| 134 | |
| 135 | struct tmp_objdir *tmp_objdir_create(struct repository *r, |
| 136 | const char *prefix) |
no test coverage detected