Support persistent-http(s) review urls
Change-Id: I8e0065685c968dfa9dc26bcdb6ee2fa14019c509
This commit is contained in:
parent
7893b85509
commit
7e12e0a2fa
1 changed files with 2 additions and 0 deletions
|
@ -566,6 +566,8 @@ class Remote(object):
|
||||||
return None
|
return None
|
||||||
|
|
||||||
u = self.review
|
u = self.review
|
||||||
|
if u.startswith('persistent-'):
|
||||||
|
u = u[len('persistent-'):]
|
||||||
if u.split(':')[0] not in ('http', 'https', 'sso'):
|
if u.split(':')[0] not in ('http', 'https', 'sso'):
|
||||||
u = 'http://%s' % u
|
u = 'http://%s' % u
|
||||||
if u.endswith('/Gerrit'):
|
if u.endswith('/Gerrit'):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue