From 7994d2ef5d2b4d2b5e40a141f044cba844519430 Mon Sep 17 00:00:00 2001 From: Paul Irish Date: Sat, 2 May 2015 01:58:39 -0700 Subject: [PATCH] followup on #24 --- git-open | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/git-open b/git-open index 114940d..a8905e3 100755 --- a/git-open +++ b/git-open @@ -43,6 +43,7 @@ else fi # Make # and % characters url friendly +# github.com/paulirish/git-open/pull/24 branch=${branch//%/%25} && branch=${branch//#/%23} # URL normalization @@ -50,11 +51,11 @@ branch=${branch//%/%25} && branch=${branch//#/%23} if grep -q gist.github <<<$giturl; then giturl=${giturl/git\@gist.github\.com\:/https://gist.github.com} providerUrlDifference=tree -# Github +# Github elif grep -q github <<<$giturl; then giturl=${giturl/git\@github\.com\:/https://github.com/} providerUrlDifference=tree -# bitbucket +# bitbucket elif grep -q bitbucket <<<$giturl; then giturl=${giturl/git\@bitbucket\.org\:/https://bitbucket.org/} providerUrlDifference=branch