Sfoglia il codice sorgente

Support persistent-http(s) review urls

Change-Id: I8e0065685c968dfa9dc26bcdb6ee2fa14019c509
Conley Owens 11 anni fa
parent
commit
7e12e0a2fa
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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'):