소스 검색

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

raylu 7 년 전
부모
커밋
ac7c55643f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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: