From affd410d415a1bb443b695b673e8175c3f0bcd4c Mon Sep 17 00:00:00 2001 From: Edward Lemur Date: Wed, 5 Jun 2019 18:07:49 +0000 Subject: [PATCH] gclient: Report only the origin to metrics collection. It currently reports the revision as well, if it's given. TBR=ajp@chromium.org Bug: 896868 Change-Id: I69f6db3f413d48501093dbb511e977e93a778f42 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/1644921 Reviewed-by: Edward Lesmes Commit-Queue: Edward Lesmes --- gclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gclient.py b/gclient.py index ad31662d4..71ec2b199 100755 --- a/gclient.py +++ b/gclient.py @@ -1450,7 +1450,7 @@ it or fix the checkout. metrics.collector.add( 'project_urls', [ - dep.url if not dep.url.endswith('.git') else dep.url[:-len('.git')] + dep.FuzzyMatchUrl(metrics_utils.KNOWN_PROJECT_URLS) for dep in deps_to_add if dep.FuzzyMatchUrl(metrics_utils.KNOWN_PROJECT_URLS) ]