From 421888c04afc2f876598b22f4fc42be0727aa97a Mon Sep 17 00:00:00 2001 From: Lilian Besson Date: Fri, 8 Jul 2016 13:07:48 +0200 Subject: [PATCH] Convert ssh:// link to a https:// one The script was failing on a Bitbucket repo using ssh instead of https. Now it should be fixed. --- git-open | 3 +++ 1 file changed, 3 insertions(+) diff --git a/git-open b/git-open index f847a6d..1f486f6 100755 --- a/git-open +++ b/git-open @@ -31,6 +31,9 @@ if [ -z "$giturl" ]; then exit 1 fi +# Convert ssh:// link to a https:// one +giturl=$( echo $giturl | sed s_'ssh://git@'_'https://'_ ) + # get current branch if [ -z "$2" ]; then branch=$(git symbolic-ref -q --short HEAD)