mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
Add gitlab support
This commit is contained in:
parent
26396b38bb
commit
e96b5c5d1b
4
git-open
4
git-open
|
|
@ -44,6 +44,10 @@ if grep -q github <<<$giturl; then
|
|||
elif grep -q bitbucket <<<$giturl; then
|
||||
giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/}
|
||||
providerUrlDifference=branch
|
||||
# gitlab support
|
||||
elif grep -q gitlab <<<$giturl; then
|
||||
giturl=${giturl/git\@gitlab\.com\:/https://gitlab.com/}
|
||||
providerUrlDifference=tree
|
||||
fi
|
||||
giturl=${giturl%\.git}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue