From 0361bc3af31a06ec64adeab0ca2d1534a1c35ed0 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 30 Mar 2020 20:40:25 +0200 Subject: rtree: always store compact remote URLs in the index file Includes a refactor to use a type RemoteURL with a more natural API. --- internal/rtree/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/rtree/main.go') diff --git a/internal/rtree/main.go b/internal/rtree/main.go index d1692cd..de92ead 100644 --- a/internal/rtree/main.go +++ b/internal/rtree/main.go @@ -144,7 +144,7 @@ func commandRemotes(index *Index) { var items []string for _, repo := range index.Repos { for _, remote := range repo.Remotes { - items = append(items, remote.URL) + items = append(items, remote.URL.CompactURL()) } } cli.Interface.ShowResultsSorted(items) -- cgit v1.3.1