From fca98414e9aa0d16f4d4876ca20f74031d7c4772 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Tue, 30 Apr 2019 11:02:23 +0200 Subject: [PATCH] refactor: use git.raw --- lib/platform/git/storage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/platform/git/storage.js b/lib/platform/git/storage.js index aee22ceef4..c496001def 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']); } -- GitLab