Skip to content

Commit

Permalink
👍 Specify branch name when pushing
Browse files Browse the repository at this point in the history
  • Loading branch information
re-fort committed Oct 1, 2017
1 parent 0047aac commit 5c02a49
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/repository.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand All @@ -51,8 +51,8 @@ class Repository {
Git.checkout(this.remote.origin.defaultBranch)
}

updateRemote() {
Git.push('origin', 'HEAD')
updateRemote(branchName) {
Git.push('origin', branchName)
}

resetChanges() {
Expand Down

0 comments on commit 5c02a49

Please sign in to comment.