Index: git_cache.py |
diff --git a/git_cache.py b/git_cache.py |
index f38b4e9d4dc5be2e511eaf2cee6600172a5d9d95..dfda1d7348f6a1bde6bca63f2fa5c372b69287cd 100755 |
--- a/git_cache.py |
+++ b/git_cache.py |
@@ -21,15 +21,6 @@ import subcommand |
GIT_EXECUTABLE = 'git.bat' if sys.platform.startswith('win') else 'git' |
-def NormalizeUrl(url): |
- """Convert a git url to a normalized form.""" |
- parsed = urlparse.urlparse(url) |
- norm_url = 'https://' + parsed.netloc + parsed.path |
- if not norm_url.endswith('.git'): |
- norm_url += '.git' |
- return norm_url |
- |
- |
def UrlToCacheDir(url): |
"""Convert a git url to a normalized form for the cache dir path.""" |
parsed = urlparse.urlparse(url) |
@@ -192,7 +183,7 @@ def CMDpopulate(parser, args): |
def _config(directory): |
RunGit(['config', 'core.deltaBaseCacheLimit', '2g'], |
cwd=directory) |
- RunGit(['config', 'remote.origin.url', NormalizeUrl(url)], |
+ RunGit(['config', 'remote.origin.url', url], |
cwd=directory) |
RunGit(['config', '--replace-all', 'remote.origin.fetch', |
'+refs/heads/*:refs/heads/*'], |