From 7e12e0a2faf5e572a196e90581c1215cc8dc7551 Mon Sep 17 00:00:00 2001 From: Conley Owens Date: Thu, 23 Oct 2014 15:40:00 -0700 Subject: [PATCH] Support persistent-http(s) review urls Change-Id: I8e0065685c968dfa9dc26bcdb6ee2fa14019c509 --- git_config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/git_config.py b/git_config.py index b4145e8c..e789be2e 100644 --- a/git_config.py +++ b/git_config.py @@ -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'):