Skip to content

Commit

Permalink
fixup! maintenance: add new vfs-cache-move maintenance task
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcheetham committed Jan 29, 2025
1 parent dd3cb57 commit e086b1a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions builtin/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1442,6 +1442,11 @@ static void migrate_pack(const char *srcdir, const char *dstdir,

strbuf_setlen(&src, srclen);
strbuf_addstr(&src, files[i].ext);

/* Files that never existed in originally have no clean up.*/
if (!file_exists(src.buf))
continue;

if (unlink(src.buf))
warning_errno(_("failed to delete '%s'"), src.buf);
}
Expand Down

0 comments on commit e086b1a

Please sign in to comment.