Revert "Repo: fall back to http, if ssh connection fails for http repos"
This reverts commit 488bf092d5992bd1b8f8681c444f2cc283d05bcb.
Issue 230
Change-Id: I3a5725301f576e1a2ac499cb6daa631895115640
diff --git a/git_config.py b/git_config.py
index f474a1c..e223678 100644
--- a/git_config.py
+++ b/git_config.py
@@ -643,10 +643,7 @@
self._review_url = http_url
else:
host, port = info.split()
- if _open_ssh(host, port):
- self._review_url = self._SshReviewUrl(userEmail, host, port)
- else:
- self._review_url = http_url
+ self._review_url = self._SshReviewUrl(userEmail, host, port)
except urllib.error.HTTPError as e:
raise UploadError('%s: %s' % (self.review, str(e)))
except urllib.error.URLError as e: