gofu
gofu copied to clipboard
rtree gets confused when a remote is referenced both with alias and without
$ cd /
$ cg gh:lib/pq
!! /x/src/github.com/lib/pq already exists (if there is a repo there, try `rtree index`)
$ pwd
/
$ cg https://github.com/lib/pq
$ pwd
/x/src/github.com/lib/pq
Plan:
- [ ] always write repositories into index with their fully expanded remote URL
- [ ] when displaying remote URL, apply available aliases to shorten the URL
bump.
Do you have a fix for this? I am asking in case you have fixed already but haven't gotten around to committing it yet 😄
No, I was too lazy. ^^ If you want to implement the fix that I've described up there, I'd happily accept a PR.
I'll try and see if I can come up with something.