From a1dfe03130ab1e3e2a1a6abc4238e1fdff93ac45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=9F=E7=95=85?= <631866165@qq.com> Date: Thu, 13 Aug 2020 17:22:52 +0800 Subject: [PATCH] feat(ssh): add --- error.py | 1 + manifest_xml.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/error.py b/error.py index a08ed69..95231e6 100644 --- a/error.py +++ b/error.py @@ -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): diff --git a/manifest_xml.py b/manifest_xml.py index f546045..52b04d4 100644 --- a/manifest_xml.py +++ b/manifest_xml.py @@ -162,7 +162,8 @@ class _XmlRemote(object): # * no scheme in the base url, like # 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)