summaryrefslogtreecommitdiffstats
path: root/git_config.py
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2014-07-01 17:12:18 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-30 22:21:58 +0000
commita6d258b84d0d2fc0f995e6160ab4ccc7cb4c8396 (patch)
tree6a676c73db47d246afbc86d6d9bd5882e6d28fe7 /git_config.py
parenta7694985683a36377841bb365c3a49551fe88a8d (diff)
parent4e4d40f7c07ffe4f8988ee5c225bc897bfcf2206 (diff)
downloadgit-repo-a6d258b84d0d2fc0f995e6160ab4ccc7cb4c8396.tar.gz
Merge "Fix UrlInsteadOf to handle multiple strings"
Diffstat (limited to 'git_config.py')
-rw-r--r--git_config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/git_config.py b/git_config.py
index 380bdd24..a667b3f8 100644
--- a/git_config.py
+++ b/git_config.py
@@ -216,9 +216,9 @@ class GitConfig(object):
216 """Resolve any url.*.insteadof references. 216 """Resolve any url.*.insteadof references.
217 """ 217 """
218 for new_url in self.GetSubSections('url'): 218 for new_url in self.GetSubSections('url'):
219 old_url = self.GetString('url.%s.insteadof' % new_url) 219 for old_url in self.GetString('url.%s.insteadof' % new_url, True):
220 if old_url is not None and url.startswith(old_url): 220 if old_url is not None and url.startswith(old_url):
221 return new_url + url[len(old_url):] 221 return new_url + url[len(old_url):]
222 return url 222 return url
223 223
224 @property 224 @property