Prechádzať zdrojové kódy

Support persistent-http(s) review urls

Change-Id: I8e0065685c968dfa9dc26bcdb6ee2fa14019c509
Conley Owens 11 rokov pred
rodič
commit
7e12e0a2fa
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      git_config.py

+ 2 - 0
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'):