diff options
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py index 3fc56b68..f76cd04e 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -642,7 +642,10 @@ class Remote(object): | |||
642 | self._review_url = http_url | 642 | self._review_url = http_url |
643 | else: | 643 | else: |
644 | host, port = info.split() | 644 | host, port = info.split() |
645 | self._review_url = self._SshReviewUrl(userEmail, host, port) | 645 | if _open_ssh(host, port): |
646 | self._review_url = self._SshReviewUrl(userEmail, host, port) | ||
647 | else: | ||
648 | self._review_url = http_url | ||
646 | except urllib.error.HTTPError as e: | 649 | except urllib.error.HTTPError as e: |
647 | raise UploadError('%s: %s' % (self.review, str(e))) | 650 | raise UploadError('%s: %s' % (self.review, str(e))) |
648 | except urllib.error.URLError as e: | 651 | except urllib.error.URLError as e: |