mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 05:43:52 -05:00
When I first wrote this code, I believed push.default=upstream to be the One True Way, and I used the upstream as the default branch when one wasn't passed into :GBrowse. Since then, my preferred workflow has shifted to push.default=current, with my upstream pointed at the repository's integration branch (typically master), which means :GBrowse effectively ignores our current branch, which is less than helpful. This change eliminates :GBrowse's use of the upstream tracking branch except in 2 scenarios: * When push.default=upstream * When the current branch has never been pushed (since using the current branch would result in a 404).