Commit 46d09f6c authored by borenet@google.com's avatar borenet@google.com

SplitUrlRevision when obtaining the cache_dir in gclient_scm.GetActualRemoteURL

BUG=361155

Review URL: https://codereview.chromium.org/230773002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@263038 0039d316-1c4b-4281-b951-d872f2087c98
parent c3e09d23
...@@ -166,7 +166,8 @@ class SCMWrapper(object): ...@@ -166,7 +166,8 @@ class SCMWrapper(object):
# If a cache_dir is used, obtain the actual remote URL from the cache. # If a cache_dir is used, obtain the actual remote URL from the cache.
if getattr(self, 'cache_dir', None): if getattr(self, 'cache_dir', None):
mirror = git_cache.Mirror(self.url) url, _ = gclient_utils.SplitUrlRevision(self.url)
mirror = git_cache.Mirror(url)
if (mirror.exists() and mirror.mirror_path.replace('\\', '/') == if (mirror.exists() and mirror.mirror_path.replace('\\', '/') ==
actual_remote_url.replace('\\', '/')): actual_remote_url.replace('\\', '/')):
actual_remote_url = shlex.split(self._Capture( actual_remote_url = shlex.split(self._Capture(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment