mirror of
https://github.com/openharmony/third_party_cryptsetup.git
synced 2026-07-19 19:53:45 -04:00
feat(ssh): add
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user