diff options
author | Dan Willemsen <dwillemsen@google.com> | 2016-09-22 16:39:06 +0000 |
---|---|---|
committer | Dan Willemsen <dwillemsen@google.com> | 2016-09-22 16:40:27 +0000 |
commit | 16889ba43da81aead6bdb3acd1233381dd8e7562 (patch) | |
tree | a4e80b68626330ff020d21524bd5b43bdf221b84 | |
parent | 40d39522708a48320105a3bfbb1f2145b72b1e16 (diff) | |
download | git-repo-16889ba43da81aead6bdb3acd1233381dd8e7562.tar.gz |
Revert "Repo: fall back to http, if ssh connection fails for http repos"v1.12.36
This reverts commit 488bf092d5992bd1b8f8681c444f2cc283d05bcb.
Issue 230
Change-Id: I3a5725301f576e1a2ac499cb6daa631895115640
-rw-r--r-- | git_config.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/git_config.py b/git_config.py index f474a1c9..e2236785 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -643,10 +643,7 @@ class Remote(object): | |||
643 | self._review_url = http_url | 643 | self._review_url = http_url |
644 | else: | 644 | else: |
645 | host, port = info.split() | 645 | host, port = info.split() |
646 | if _open_ssh(host, port): | 646 | self._review_url = self._SshReviewUrl(userEmail, host, port) |
647 | self._review_url = self._SshReviewUrl(userEmail, host, port) | ||
648 | else: | ||
649 | self._review_url = http_url | ||
650 | except urllib.error.HTTPError as e: | 647 | except urllib.error.HTTPError as e: |
651 | raise UploadError('%s: %s' % (self.review, str(e))) | 648 | raise UploadError('%s: %s' % (self.review, str(e))) |
652 | except urllib.error.URLError as e: | 649 | except urllib.error.URLError as e: |