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 fee5df6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builtin/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,10 @@ static void migrate_pack(const char *srcdir, const char *dstdir,
if (files[i].move)
continue;

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

strbuf_setlen(&src, srclen);
strbuf_addstr(&src, files[i].ext);
if (unlink(src.buf))
Expand Down

0 comments on commit fee5df6

Please sign in to comment.