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
diff --git a/gclient_scm.py b/gclient_scm.py
index 0de67bd..ab07b83 100644
--- a/gclient_scm.py
+++ b/gclient_scm.py
@@ -166,7 +166,8 @@
# If a cache_dir is used, obtain the actual remote URL from the cache.
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('\\', '/') ==
actual_remote_url.replace('\\', '/')):
actual_remote_url = shlex.split(self._Capture(