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
changes/01/332501/1
borenet@google.com 12 years ago
parent c3e09d2303
commit 46d09f6c6c

@ -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(

Loading…
Cancel
Save