Browse Source

Merge "Add option REPO_IGNORE_SSH_INFO to ignore ssh_info"

David Pursehouse 8 năm trước cách đây
mục cha
commit
997a92bd58
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      git_config.py

+ 3 - 0
git_config.py

@@ -631,6 +631,9 @@ class Remote(object):
       elif u.startswith('sso:'):
         self._review_url = u  # Assume it's right
         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:
         try:
           info_url = u + 'ssh_info'