mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-15 01:36:26 -04:00
Merge pull request #55 from ffes/gitlab-ssh
Handle GitLab's default SSH notation
This commit is contained in:
commit
ce8fb12532
3
git-open
3
git-open
|
|
@ -96,6 +96,9 @@ else
|
|||
if [ -n "$gitlab_domain" ]; then
|
||||
if grep -q "$gitlab_domain" <<<$giturl; then
|
||||
|
||||
# Handle GitLab's default SSH notation (like git@gitlab.domain.com:user/repo)
|
||||
giturl=${giturl/git\@${gitlab_domain}\:/https://${gitlab_domain}/}
|
||||
|
||||
# handle SSH protocol (links like ssh://git@gitlab.domain.com/user/repo)
|
||||
giturl=${giturl/#ssh\:\/\//https://}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue