Explorar o código

git-url: handle ssh host rewrites for github.com

raylu %!s(int64=7) %!d(string=hai) anos
pai
achega
ac7c55643f
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      git-url

+ 2 - 0
git-url

@@ -34,6 +34,8 @@ if remote_url.endswith('.git'):
 	remote_url = remote_url[:-len('.git')]
 parsed = urllib.parse.urlparse(remote_url)
 hostname = parsed.hostname
+if hostname.startswith('github.com-'):
+	hostname = 'github.com'
 
 obj_type = 'tree'
 if len(sys.argv) == 2: