From b519e7b6fb559b7946cc6758b4712d16980b7341 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 15 Aug 2019 21:52:29 +0300 Subject: [PATCH] Fix(git-open): Replace `git@` in URL with `https://` In hope the remote repository has web interface. --- bin/git-open | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/git-open b/bin/git-open index ebb6e0a..da3561e 100755 --- a/bin/git-open +++ b/bin/git-open @@ -18,4 +18,4 @@ if [ -z "$browser_cmd" ]; then browser_cmd="webbrowser -n" fi -exec $browser_cmd "`git config --get $url_key`" +exec $browser_cmd "`git config --get $url_key | sed 's!^git@\([-A-Za-z0-9._]\+\):!https://\1/!'`" -- 2.39.5