diff --git a/lib/platform/git/storage.js b/lib/platform/git/storage.js index aee22ceef4eb13e0bd8c04d61aae4fcddcf46e3f..c496001def6a33990959f5062cbec8781b498b04 100644 --- a/lib/platform/git/storage.js +++ b/lib/platform/git/storage.js @@ -35,7 +35,7 @@ class Storage { await git.raw(['reset', '--hard']); await git.checkout(branchName); await git.raw(['reset', '--hard', 'origin/' + branchName]); - await git.clean('-fd'); + await git.raw(['clean', '-fd']); } // istanbul ignore next @@ -152,7 +152,7 @@ class Storage { async function createBranch(branchName, sha) { await git.reset('hard'); - await git.clean('-fd'); + await git.raw(['clean', '-fd']); await git.checkout(['-B', branchName, sha]); await git.push(['origin', branchName, '--force']); }