From: Oleg Broytman Date: Thu, 15 Aug 2019 18:52:29 +0000 (+0300) Subject: Fix(git-open): Replace `git@` in URL with `https://` X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=commitdiff_plain;h=b519e7b6fb559b7946cc6758b4712d16980b7341 Fix(git-open): Replace `git@` in URL with `https://` In hope the remote repository has web interface. --- 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/!'`"