summaryrefslogtreecommitdiff
path: root/internal/rtree/main.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2020-03-30 20:40:25 +0200
committerStefan Majewsky <majewsky@gmx.net>2020-03-30 20:40:25 +0200
commit0361bc3af31a06ec64adeab0ca2d1534a1c35ed0 (patch)
treeca25c6aa4f7052617664b456096e0d42acd5eef2 /internal/rtree/main.go
parentfdffeee7dc2a4869c85f0c298e3d12924846724b (diff)
downloadgofu-0361bc3af31a06ec64adeab0ca2d1534a1c35ed0.tar.gz
rtree: always store compact remote URLs in the index file
Includes a refactor to use a type RemoteURL with a more natural API.
Diffstat (limited to 'internal/rtree/main.go')
-rw-r--r--internal/rtree/main.go2
1 files changed, 1 insertions, 1 deletions
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)