Merge "Add option REPO_IGNORE_SSH_INFO to ignore ssh_info"

This commit is contained in:
David Pursehouse 2017-05-27 04:25:39 +00:00 committed by Gerrit Code Review
commit 997a92bd58

View File

@ -631,6 +631,9 @@ class Remote(object):
elif u.startswith('sso:'): elif u.startswith('sso:'):
self._review_url = u # Assume it's right self._review_url = u # Assume it's right
REVIEW_CACHE[u] = self._review_url REVIEW_CACHE[u] = self._review_url
elif 'REPO_IGNORE_SSH_INFO' in os.environ:
self._review_url = http_url
REVIEW_CACHE[u] = self._review_url
else: else:
try: try:
info_url = u + 'ssh_info' info_url = u + 'ssh_info'