diff options
Diffstat (limited to 'midx.c')
| -rw-r--r-- | midx.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -904,3 +904,15 @@ cleanup: free(midx_name); return 0; } + +void clear_midx_file(const char *object_dir) +{ + char *midx = get_midx_filename(object_dir); + + if (remove_path(midx)) { + UNLEAK(midx); + die(_("failed to clear multi-pack-index at %s"), midx); + } + + free(midx); +} |
