mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
Add support for repos cloned via SSH
This commit is contained in:
parent
9dced58c8c
commit
040ee55aa7
4
git-open
4
git-open
|
|
@ -51,6 +51,10 @@ if grep -q gist.github <<<$giturl; then
|
|||
# Github
|
||||
elif grep -q github <<<$giturl; then
|
||||
giturl=${giturl/git\@github\.com\:/https://github.com/}
|
||||
|
||||
# handle SSH protocol (links like ssh://git@github.com/user/repo)
|
||||
giturl=${giturl/#ssh\:\/\/git\@github\.com\//https://github.com/}
|
||||
|
||||
providerUrlDifference=tree
|
||||
|
||||
# bitbucket
|
||||
|
|
|
|||
Loading…
Reference in a new issue