Skip to content

Commit b2166b0

Browse files
committed
Merge branch 'ds/remove-idx-before-pack'
We create .pack and then .idx, we consider only packfiles that have .idx usable (those with only .pack are not ready yet), so we should remove .idx before removing .pack for consistency. * ds/remove-idx-before-pack: packfile: delete .idx files before .pack files
2 parents a9e066f + 0dd1324 commit b2166b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packfile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ void close_object_store(struct raw_object_store *o)
381381

382382
void unlink_pack_path(const char *pack_name, int force_delete)
383383
{
384-
static const char *exts[] = {".pack", ".idx", ".rev", ".keep", ".bitmap", ".promisor", ".mtimes"};
384+
static const char *exts[] = {".idx", ".pack", ".rev", ".keep", ".bitmap", ".promisor", ".mtimes"};
385385
int i;
386386
struct strbuf buf = STRBUF_INIT;
387387
size_t plen;

0 commit comments

Comments
 (0)