paulirish / git-open

Type `git open` to open the GitHub page or website for a repository in your browser.
MIT License
3.29k stars 246 forks source link

Fix for bitbucket #164

Closed jnvillar closed 3 years ago

jnvillar commented 4 years ago

Currently the command git open is not working with bitbucket. It opens master branch instead of current branch. That's because src?at= is not supported any more. The correct way is /branch/${branch_name}

I tested this fix locally and it works fine

derimagia commented 3 years ago

Should be fixed from #165

menocomp commented 3 years ago

I installed this as a plugin in oh-zsh and I am using bitbucket. When I type git open it opens this in a browser: https://bitbucket.org/[account-owner]/[repo-name]/src/[branch-name] Everything is mapped correctly except the path src it should be branch as follows: https://bitbucket.org/[account-owner]/[repo-name]/branch/[branch-name]

Is that a bug or there is a way to configure that?