mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
Handle urls without the github domain
This commit is contained in:
parent
cf2c289692
commit
465c137619
6
git-open
6
git-open
|
|
@ -65,6 +65,12 @@ elif grep -q github <<<"$giturl"; then
|
|||
|
||||
# handle urls with the git user
|
||||
giturl=${giturl/#github\.com\:/https://github.com/}
|
||||
|
||||
# handle urls without the github domain with git user
|
||||
giturl=${giturl/#github\:/https://github.com/}
|
||||
|
||||
# handle urls without the github domain
|
||||
giturl=${giturl/#ssh\:\/\/git\@github\//https://github.com/}
|
||||
|
||||
# handle SSH protocol (links like ssh://git@github.com/user/repo)
|
||||
giturl=${giturl/#ssh\:\/\/git\@github\.com\//https://github.com/}
|
||||
|
|
|
|||
Loading…
Reference in a new issue