Commit affd410d authored by Edward Lemur's avatar Edward Lemur Committed by Commit Bot

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/+/1644921Reviewed-by: 's avatarEdward Lesmes <ehmaldonado@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
parent 075cb05b
......@@ -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)
]
......
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