bgreenlee / sublime-github

Sublime Text 2/3 plugin that provides a number of useful commands for GitHub.
MIT License
455 stars 98 forks source link

Use the remote branch name #98

Closed russelldavis closed 8 years ago

russelldavis commented 8 years ago

Without this, the plugin opens github with the local branch name. If the remote branch name is different, that will result in a 404 on GitHub.

This also updates the plugin to use the remote associated with the branch, which won't necessarily be the same as the default remote for the repo (which was previously used). If a remote is specified in the user's config, that will still take precedence.

bgreenlee commented 8 years ago

Looks good, thanks! I'm going to make one change after I merge: to display an error if there's no upstream for the current branch.

russelldavis commented 8 years ago

Perfect, thanks!