diff --git a/CHANGELOG.md b/CHANGELOG.md index 82a42fe..7985ca0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ +## 1.0.24 (2021-01-16) + +* fix: git push ([c8fb3f4](https://github.com/simonecorsi/mawesome/commit/c8fb3f4)) + + + ## 1.0.23 (2021-01-16) +* chore(release): v1.0.23 ([f41befa](https://github.com/simonecorsi/mawesome/commit/f41befa)) * docs: added authors ([3de0e12](https://github.com/simonecorsi/mawesome/commit/3de0e12)) diff --git a/index.js b/index.js index 0bf2187..0dfed61 100644 --- a/index.js +++ b/index.js @@ -21289,20 +21289,12 @@ exports.default = new (class Git { this.add = (file) => this.exec(`add ${file}`); this.commit = (message) => this.exec(`commit -m "${message}"`); this.pull = () => __awaiter(this, void 0, void 0, function* () { - const args = ['pull', 'origin', branch]; - // Check if the repo is unshallow - if (yield this.isShallow()) { - args.push('--unshallow'); - } + const args = ['pull']; args.push('--tags'); args.push(core.getInput('git-pull-method')); return this.exec(args.join(' ')); }); this.push = () => this.exec(`push origin ${branch} --follow-tags`); - this.isShallow = () => __awaiter(this, void 0, void 0, function* () { - const isShallow = yield this.exec('rev-parse --is-shallow-repository'); - return isShallow.trim().replace('\n', '') === 'true'; - }); this.updateOrigin = (repo) => this.exec(`remote set-url origin ${repo}`); this.createTag = (tag) => this.exec(`tag -a ${tag} -m "${tag}"`); const githubToken = core.getInput('github-token', { required: true }); diff --git a/package.json b/package.json index 88d3c25..20b8f07 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mawesome", - "version": "1.0.23", + "version": "1.0.24", "description": "Generate awesome list from user starred repositories", "main": "index.js", "author": "Simone Corsi",