Przeglądaj źródła

Merge "Fix UrlInsteadOf to handle multiple strings"

Conley Owens 11 lat temu
rodzic
commit
a6d258b84d
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      git_config.py

+ 3 - 3
git_config.py

@@ -216,9 +216,9 @@ class GitConfig(object):
     """Resolve any url.*.insteadof references.
     """
     for new_url in self.GetSubSections('url'):
-      old_url = self.GetString('url.%s.insteadof' % new_url)
-      if old_url is not None and url.startswith(old_url):
-        return new_url + url[len(old_url):]
+      for old_url in self.GetString('url.%s.insteadof' % new_url, True):
+        if old_url is not None and url.startswith(old_url):
+          return new_url + url[len(old_url):]
     return url
 
   @property