From e96b5c5d1be55026a7cea7c8f3dbb24efaa8bf3a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 6 Feb 2015 10:57:02 -0600 Subject: [PATCH] Add gitlab support --- git-open | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-open b/git-open index eba7572..dc6e512 100755 --- a/git-open +++ b/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}