paulirish / git-open

Type `git open` to open the GitHub page or website for a repository in your browser.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Repo cloned with SSH is not opening

oluckyman opened this issue · comments

I have a private github repo with URL in SSH format:

$ git config --get remote.origin.url
ssh://git@github.com/foo/bar.git

When I run git open in iTerm the Terminal app is opening:
ss 2015-08-25 at 6 51 42 pm

I'm using a custom gitlab host (and a custom port for ssh) and this is exactly what happens when I run git open

The url it creates is ssh://http://gitlab.my_domain.com/my_port/my_group/my_project.git my clone url is ssh://git@gitlab.my_domain.com:my_port/my_group/my_project.git

@evoactivity I am seeing this as well - have you found a way around this? PR?

this was fixed with this rewrite line: https://github.com/paulirish/git-open/pull/30/files

obv it was github specific. do you want to contribute a fix that works for gitlab?

@xasx I submitted a pull request that fixed this back in August, it might not fix your exact issue though https://github.com/paulirish/git-open/pull/51/files but it might point you in the direction for a fix you can submit.

I tried something that works for me 😆

Please check/review whether it breaks something else.