-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert ssh:// link to a https:// one #36
Conversation
The script was failing on a Bitbucket repo using ssh instead of https. Now it should be fixed.
i'd be more comfortable if this was in the actual bitbucket section since there is code that handles this for github and gitlab already: |
Oh yes, sorry. I didn't even saw that this replacement of ssh:// to https:// was done for GitHub URLs already. |
the regex doesn't quite match since the bitbucket urls are in the form of
I think all you needed to add was
which strips out the you only need that since the line above your addition ( https://github.com/paulirish/git-open/pull/36/files#diff-21e611831fd54f9104bb1bb2abf161eeR62 ) handles changing the |
It works with either ``ssh://git@bitbucket.org/user/repo.git`` or ``ssh://git@bitbucket.org:user/repo.git``.
Well, my URL for Bitbucket are in the form of |
Some of my repos are e.g., I think a few years ago the example URL given on an empty private repo (on Bitbucket) was using the not-recommended URL style without Sorry for the inefficient work-flow, I hope the enhancement works now and can be merged. |
lgtm! thanks |
My pleasure. |
…this PR paulirish/git-open#36, to support ssh:// repos.
…this PR paulirish/git-open#36, to support ssh:// repos.
The script was failing on a Bitbucket repo using ssh instead of https. Now it should be fixed.