diff options
| author | Sandro Jäckel <sandro.jaeckel@sap.com> | 2023-04-17 14:43:15 +0200 |
|---|---|---|
| committer | Sandro Jäckel <sandro.jaeckel@sap.com> | 2023-04-17 14:56:16 +0200 |
| commit | d0059fcb87312d296a31d6965d6db84e499fe020 (patch) | |
| tree | ea285343822712bf002ad6dee0b11a094b442e2d /internal/rtree/remote.go | |
| parent | 72c757b7a44dc5d19d821f7c2fa36bb082e4f2e3 (diff) | |
| download | gofu-d0059fcb87312d296a31d6965d6db84e499fe020.tar.gz | |
Only use compact URL in UI, not in written files
many tools like eg some vscode extensions can parse the git remotes but do not respect
git aliases and fail to understand shorthands like gh:majewsky/gofu
Diffstat (limited to 'internal/rtree/remote.go')
| -rw-r--r-- | internal/rtree/remote.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/rtree/remote.go b/internal/rtree/remote.go index 2973b8c..36e12dd 100644 --- a/internal/rtree/remote.go +++ b/internal/rtree/remote.go @@ -104,7 +104,7 @@ func (u RemoteURL) CheckoutPath() (string, error) { // MarshalYAML implements the yaml.Marshaler interface. func (u RemoteURL) MarshalYAML() (interface{}, error) { //store URLs in the index in the compact format - return u.CompactURL(), nil + return u.CanonicalURL(), nil } // UnmarshalYAML implements the yaml.Unmarshaler interface. |
