From: Oleg Broytman Date: Thu, 14 Mar 2019 15:08:44 +0000 (+0300) Subject: Feat(git-open): Replace scp URLs with https X-Git-Url: https://git.phdru.name/?p=git-scripts.git;a=commitdiff_plain;h=aa9a15594788c0aa44dceb637ae18c51944bebcf Feat(git-open): Replace scp URLs with https --- diff --git a/git-open b/git-open index ebb6e0a..da3561e 100755 --- a/git-open +++ b/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/!'`"