summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Muehlhaeuser <muesli@gmail.com>2022-02-01 08:46:24 +0100
committerChristian Muehlhaeuser <muesli@gmail.com>2022-02-01 08:55:12 +0100
commit4762bb9994ff7a43feb5ec5bfe06642e254463fb (patch)
treec93423cf01f68b63c8d38cad34770dc9576b5b85
parent917b628ee717d25e7be9c7db7f315fd9aa176c11 (diff)
Support ssh.github.com as a valid providerv0.7.0
Fixes #38.
-rw-r--r--git.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/git.go b/git.go
index 8550830..43a4973 100644
--- a/git.go
+++ b/git.go
@@ -175,6 +175,11 @@ func cleanupURL(arg string) (string, error) {
u.User = nil
u.Scheme = "https"
+ // support SSH connections to GitHub via port 443
+ if u.Host == "ssh.github.com" {
+ u.Host = "github.com"
+ }
+
return u.String(), nil
}