mirror of
https://gerrit.googlesource.com/git-repo
synced 2024-12-23 07:16:21 +00:00
Merge "Add option REPO_IGNORE_SSH_INFO to ignore ssh_info"
This commit is contained in:
commit
997a92bd58
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user