Skip to content

Commit fee5df6

Browse files
committed
fixup! maintenance: add new vfs-cache-move maintenance task
1 parent dd3cb57 commit fee5df6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

builtin/gc.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,10 @@ static void migrate_pack(const char *srcdir, const char *dstdir,
14401440
if (files[i].move)
14411441
continue;
14421442

1443+
/* Files that never existed in originally have no clean up.*/
1444+
if (!file_exists(src.buf))
1445+
continue;
1446+
14431447
strbuf_setlen(&src, srclen);
14441448
strbuf_addstr(&src, files[i].ext);
14451449
if (unlink(src.buf))

0 commit comments

Comments
 (0)