mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-21 07:16:21 +00:00
Revert "Repo: fall back to http, if ssh connection fails for http repos"
This reverts commit 488bf092d5
.
Issue 230
Change-Id: I3a5725301f576e1a2ac499cb6daa631895115640
This commit is contained in:
parent
40d3952270
commit
16889ba43d
@ -643,10 +643,7 @@ class Remote(object):
|
|||||||
self._review_url = http_url
|
self._review_url = http_url
|
||||||
else:
|
else:
|
||||||
host, port = info.split()
|
host, port = info.split()
|
||||||
if _open_ssh(host, port):
|
self._review_url = self._SshReviewUrl(userEmail, host, port)
|
||||||
self._review_url = self._SshReviewUrl(userEmail, host, port)
|
|
||||||
else:
|
|
||||||
self._review_url = http_url
|
|
||||||
except urllib.error.HTTPError as e:
|
except urllib.error.HTTPError as e:
|
||||||
raise UploadError('%s: %s' % (self.review, str(e)))
|
raise UploadError('%s: %s' % (self.review, str(e)))
|
||||||
except urllib.error.URLError as e:
|
except urllib.error.URLError as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user