mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
Merge pull request #30 from oluckyman/ssh-protocol
Add support for repos cloned via SSH
This commit is contained in:
commit
a90d14bec5
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