fix(core): update

This commit is contained in:
Philipp Kunz 2019-10-04 15:18:51 +02:00
parent 13f6334ae5
commit fca00ffcf8

View File

@ -54,14 +54,14 @@ export class NpmciGitManager {
await bash(`git fetch`); await bash(`git fetch`);
// add the mirror // add the mirror
await bash( await bashNoError(
`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git` `git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`
); );
await bash(`git push mirror --all`); await bashNoError(`git push mirror --all`);
await bash(`git checkout origin/master`); await bashNoError(`git checkout origin/master`);
await bash(`git push mirror master`); await bashNoError(`git push mirror master`);
logger.log('ok', 'pushed all branches to mirror!'); logger.log('ok', 'pushed all branches to mirror!');
await bash(`git push mirror --tags`); await bashNoError(`git push mirror --tags`);
logger.log('ok', 'pushed all tags to mirror!'); logger.log('ok', 'pushed all tags to mirror!');
// remove old mirrors // remove old mirrors
await bashNoError('git remote rm mirror'); await bashNoError('git remote rm mirror');