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>
diff --git a/gclient.py b/gclient.py
index ad31662..71ec2b1 100755
--- a/gclient.py
+++ b/gclient.py
@@ -1450,7 +1450,7 @@
     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)
         ]