mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
It works with both types of URL now
It works with either ``ssh://git@bitbucket.org/user/repo.git`` or ``ssh://git@bitbucket.org:user/repo.git``.
This commit is contained in:
parent
f79712de8b
commit
c2e65077f4
4
git-open
4
git-open
|
|
@ -60,8 +60,8 @@ elif grep -q github <<<$giturl; then
|
|||
# bitbucket
|
||||
elif grep -q bitbucket <<<$giturl; then
|
||||
giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/}
|
||||
# handle SSH protocol (links like ssh://git@github.com/user/repo)
|
||||
giturl=${giturl/#ssh\:\/\/git\@bitbucket\.org\//https://bitbucket.org/}
|
||||
# handle SSH protocol (change ssh://https://bitbucket.org/user/repo to https://bitbucket.org/user/repo)
|
||||
giturl=${giturl/#ssh\:\/\/git\@/https://}
|
||||
|
||||
rev="$(git rev-parse HEAD)"
|
||||
git_pwd="$(git rev-parse --show-prefix)"
|
||||
|
|
|
|||
Loading…
Reference in a new issue