refactor: use git.raw

This commit is contained in:
Rhys Arkins 2019-04-30 11:02:23 +02:00
parent 5e0c788349
commit fca98414e9

View file

@ -35,7 +35,7 @@ class Storage {
await git.raw(['reset', '--hard']); await git.raw(['reset', '--hard']);
await git.checkout(branchName); await git.checkout(branchName);
await git.raw(['reset', '--hard', 'origin/' + branchName]); await git.raw(['reset', '--hard', 'origin/' + branchName]);
await git.clean('-fd'); await git.raw(['clean', '-fd']);
} }
// istanbul ignore next // istanbul ignore next
@ -152,7 +152,7 @@ class Storage {
async function createBranch(branchName, sha) { async function createBranch(branchName, sha) {
await git.reset('hard'); await git.reset('hard');
await git.clean('-fd'); await git.raw(['clean', '-fd']);
await git.checkout(['-B', branchName, sha]); await git.checkout(['-B', branchName, sha]);
await git.push(['origin', branchName, '--force']); await git.push(['origin', branchName, '--force']);
} }