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 <ehmaldonado@chromium.org>
Commit-Queue: Edward Lesmes <ehmaldonado@chromium.org>
changes/21/1644921/3
Edward Lemur 6 years ago committed by Commit Bot
parent 075cb05bde
commit affd410d41

@ -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)
]

Loading…
Cancel
Save