gofu icon indicating copy to clipboard operation
gofu copied to clipboard

rtree gets confused when a remote is referenced both with alias and without

Open majewsky opened this issue 8 years ago • 3 comments

$ 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

majewsky avatar Jan 05 '18 16:01 majewsky

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 😄

talal avatar Aug 24 '18 15:08 talal

No, I was too lazy. ^^ If you want to implement the fix that I've described up there, I'd happily accept a PR.

majewsky avatar Aug 27 '18 12:08 majewsky

I'll try and see if I can come up with something.

talal avatar Aug 27 '18 13:08 talal