Skip to content

Commit e086b1a

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

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

builtin/gc.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,6 +1442,11 @@ static void migrate_pack(const char *srcdir, const char *dstdir,
14421442

14431443
strbuf_setlen(&src, srclen);
14441444
strbuf_addstr(&src, files[i].ext);
1445+
1446+
/* Files that never existed in originally have no clean up.*/
1447+
if (!file_exists(src.buf))
1448+
continue;
1449+
14451450
if (unlink(src.buf))
14461451
warning_errno(_("failed to delete '%s'"), src.buf);
14471452
}

0 commit comments

Comments
 (0)