feat(ssh): add

This commit is contained in:
江畅
2020-08-13 17:22:52 +08:00
parent 13a308c044
commit a1dfe03130
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -59,6 +59,7 @@ class PullRequestError(Exception):
""" pull request to Gitee did not succeed.
"""
def __init__(self, reason):
super.__init__()
self.reason = reason
def __str__(self):
+2 -1
View File
@@ -162,7 +162,8 @@ class _XmlRemote(object):
# * no scheme in the base url, like <hostname:port>
# We handle no scheme by replacing it with an obscure protocol, gopher
# and then replacing it with the original when we are done.
if 'git@gitee' in url:
return url
if manifestUrl.find(':') != manifestUrl.find('/') - 1:
url = urllib.parse.urljoin('gopher://' + manifestUrl, url)
url = re.sub(r'^gopher://', '', url)