mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 23:16:26 +00:00
refactor: use git.raw
This commit is contained in:
parent
5e0c788349
commit
fca98414e9
1 changed files with 2 additions and 2 deletions
|
@ -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']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue