EndangeredMassa / npub

publisher for node.js projects
BSD 3-Clause "New" or "Revised" License
3 stars 2 forks source link

`git.remoteBranch` allows for remotes other than origin #40

Closed danielmconrad closed 9 years ago

danielmconrad commented 9 years ago

We sometimes use a remote other than origin for our repo. This will look at the current branch and the remote branch it's tracking.

$ git rev-parse --abbrev-ref --symbolic-full-name @{u}
upstream/master
danielmconrad commented 9 years ago

My original approach was to pass it in as an argument: npub publish minor -r upstream or something similar. But since 95% of the time the current branch is tracking the appropriate remote, it would work in cases where you're working in a private or an org-based repo.

danielmconrad commented 9 years ago

Any chance to test this?

EndangeredMassa commented 9 years ago

Tested. Seems to work well. Thanks!

EndangeredMassa commented 9 years ago

published in 2.2.0