| 1182 | } |
| 1183 | |
| 1184 | static int remove_empty_directories(struct strbuf *path) |
| 1185 | { |
| 1186 | /* |
| 1187 | * we want to create a file but there is a directory there; |
| 1188 | * if that is an empty directory (or a directory that contains |
| 1189 | * only empty directories), remove them. |
| 1190 | */ |
| 1191 | return remove_dir_recursively(path, REMOVE_DIR_EMPTY_ONLY); |
| 1192 | } |
| 1193 | |
| 1194 | struct create_reflock_cb { |
| 1195 | struct lock_file *lk; |
no test coverage detected