mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-05-21 14:27:29 +08:00
Merge "Repo: fall back to http, if ssh connection fails for http repos"
This commit is contained in:
commit
2aa61d0bc8
@ -638,7 +638,10 @@ class Remote(object):
|
||||
self._review_url = http_url
|
||||
else:
|
||||
host, port = info.split()
|
||||
self._review_url = self._SshReviewUrl(userEmail, host, port)
|
||||
if _open_ssh(host, port):
|
||||
self._review_url = self._SshReviewUrl(userEmail, host, port)
|
||||
else:
|
||||
self._review_url = http_url
|
||||
except urllib.error.HTTPError as e:
|
||||
raise UploadError('%s: %s' % (self.review, str(e)))
|
||||
except urllib.error.URLError as e:
|
||||
|
Loading…
Reference in New Issue
Block a user