diff options
author | Conley Owens <cco3@android.com> | 2014-10-23 15:40:00 -0700 |
---|---|---|
committer | Conley Owens <cco3@android.com> | 2014-10-23 15:42:09 -0700 |
commit | 7e12e0a2faf5e572a196e90581c1215cc8dc7551 (patch) | |
tree | c0f4a17db28de2a11e79648ab911f464ca2a4951 | |
parent | 7893b85509c1165d11ad951261aa9f49deb09eea (diff) | |
download | git-repo-7e12e0a2faf5e572a196e90581c1215cc8dc7551.tar.gz |
Support persistent-http(s) review urls
Change-Id: I8e0065685c968dfa9dc26bcdb6ee2fa14019c509
-rw-r--r-- | git_config.py | 2 |
1 files changed, 2 insertions, 0 deletions
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): | |||
566 | return None | 566 | return None |
567 | 567 | ||
568 | u = self.review | 568 | u = self.review |
569 | if u.startswith('persistent-'): | ||
570 | u = u[len('persistent-'):] | ||
569 | if u.split(':')[0] not in ('http', 'https', 'sso'): | 571 | if u.split(':')[0] not in ('http', 'https', 'sso'): |
570 | u = 'http://%s' % u | 572 | u = 'http://%s' % u |
571 | if u.endswith('/Gerrit'): | 573 | if u.endswith('/Gerrit'): |