From a6424d113b5322a76573ea5504045d12efbcc531 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Fri, 8 Sep 2017 17:51:48 +0200 Subject: [PATCH] update mirror --- dist/mod_git/index.js | 7 +++++-- ts/mod_git/index.ts | 5 ++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/dist/mod_git/index.js b/dist/mod_git/index.js index c2c4d54..578c988 100644 --- a/dist/mod_git/index.js +++ b/dist/mod_git/index.js @@ -39,11 +39,14 @@ exports.mirror = () => __awaiter(this, void 0, void 0, function* () { plugins.beautylog.log('attempting the mirror the repository to GitHub'); // add the mirror yield npmci_bash_1.bash(`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`); - yield npmci_bash_1.bash(`git push mirror`); + yield npmci_bash_1.bash(`git push mirror --all`); + plugins.beautylog.ok('pushed all branches to mirror!'); + yield npmci_bash_1.bash(`git push mirror --tags`); + plugins.beautylog.ok('pushed all tags to mirror!'); } else { plugins.beautylog.error(`cannot find NPMCI_GIT_GITHUBTOKEN env var!`); process.exit(1); } }); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi90cy9tb2RfZ2l0L2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSx5Q0FBd0M7QUFDeEMsOENBQW9DO0FBQ3BDLDRDQUFtQztBQUVuQzs7O0dBR0c7QUFDUSxRQUFBLFNBQVMsR0FBRyxDQUFPLE9BQU87SUFDbkMsRUFBRSxDQUFDLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxNQUFNLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztRQUMxQixJQUFJLE1BQU0sR0FBVyxPQUFPLENBQUMsQ0FBQyxDQUFFLENBQUMsQ0FBRSxDQUFBO1FBQ25DLE1BQU0sQ0FBQyxDQUFD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UFDSCxDQUFDLENBQUEsQ0FBQSJ9 \ No newline at end of file diff --git a/ts/mod_git/index.ts b/ts/mod_git/index.ts index cf7969c..7ffc3db 100644 --- a/ts/mod_git/index.ts +++ b/ts/mod_git/index.ts @@ -30,7 +30,10 @@ export let mirror = async () => { plugins.beautylog.log('attempting the mirror the repository to GitHub') // add the mirror await bash(`git remote add mirror https://${githubToken}@github.com/${githubUser}/${githubRepo}.git`) - await bash(`git push mirror`) + await bash(`git push mirror --all`) + plugins.beautylog.ok('pushed all branches to mirror!') + await bash(`git push mirror --tags`) + plugins.beautylog.ok('pushed all tags to mirror!') } else { plugins.beautylog.error(`cannot find NPMCI_GIT_GITHUBTOKEN env var!`) process.exit(1)