Support persistent-http(s) review urls

Change-Id: I8e0065685c968dfa9dc26bcdb6ee2fa14019c509
This commit is contained in:
Conley Owens 2014-10-23 15:40:00 -07:00
parent 7893b85509
commit 7e12e0a2fa

View File

@ -566,6 +566,8 @@ class Remote(object):
return None
u = self.review
if u.startswith('persistent-'):
u = u[len('persistent-'):]
if u.split(':')[0] not in ('http', 'https', 'sso'):
u = 'http://%s' % u
if u.endswith('/Gerrit'):