diff --git a/lib/platform/git/storage.js b/lib/platform/git/storage.js index 7c025fea82cca242b2d0bdddde2fec7be8ebd066..a0ba6bae82da260ee305b8b04269296455668d9e 100644 --- a/lib/platform/git/storage.js +++ b/lib/platform/git/storage.js @@ -265,6 +265,7 @@ class Storage { ) { try { await git.reset('hard'); + await git.raw(['clean', '-fd']); await git.checkout(['-B', branchName, 'origin/' + parentBranch]); for (const file of files) { await fs.writeFile(join(cwd, file.name), Buffer.from(file.contents));