]> git.phdru.name Git - git-scripts.git/commitdiff
Feat(git-open): Replace scp URLs with https
authorOleg Broytman <phd@phdru.name>
Thu, 14 Mar 2019 15:08:44 +0000 (18:08 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 14 Mar 2019 15:08:44 +0000 (18:08 +0300)
git-open

index ebb6e0a5295ecab5930518c518cffd312fb365ee..da3561ebe52e041c81df8d5b8ba54387e0ec73a3 100755 (executable)
--- 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/!'`"