From 5c02a49f982bf252c704848598292b42a60f7547 Mon Sep 17 00:00:00 2001 From: re-fort Date: Mon, 2 Oct 2017 01:03:02 +0900 Subject: [PATCH] :+1: Specify branch name when pushing --- lib/repository.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/repository.js b/lib/repository.js index 40af216..a40a2fa 100644 --- a/lib/repository.js +++ b/lib/repository.js @@ -40,7 +40,7 @@ class Repository { mergeUpstream() { this.checkputDefaultBranch() Git.merge(`${this.remote.upstream.name}/${this.remote.upstream.defaultBranch}`) - this.updateRemote() + this.updateRemote(this.remote.origin.defaultBranch) } fetchHead() { @@ -51,8 +51,8 @@ class Repository { Git.checkout(this.remote.origin.defaultBranch) } - updateRemote() { - Git.push('origin', 'HEAD') + updateRemote(branchName) { + Git.push('origin', branchName) } resetChanges() {