vim-github-link icon indicating copy to clipboard operation
vim-github-link copied to clipboard

Incorrect remote repository when used with 2 distinct remotes

Open SAtacker opened this issue 2 years ago • 2 comments

Description

I have configured my repository to have 2 remotes.

$ git remote -v
origin	[email protected]:STEllAR-GROUP/hpx.git (fetch)
origin	[email protected]:STEllAR-GROUP/hpx.git (push)
satacker	[email protected]:SAtacker/hpx.git (fetch)
satacker	[email protected]:SAtacker/hpx.git (push)

However I get the following link when I am checked out on a branch tracking satacker remote and not origin. image Using all the Get* commands I am not getting the expected link.

Link I get - https://github.com/STEllAR-GROUP/hpx/blob/38f850e99cba5a3f65555d02c39aa3c1479c1914/examples/1d_stencil/1d_stencil_4_parallel_any_sender.cpp#L157-L199

Link I expect: https://github.com/SAtacker/hpx/blob/38f850e99cba5a3f65555d02c39aa3c1479c1914/examples/1d_stencil/1d_stencil_4_parallel_any_sender.cpp#L157-L199

Thanks for this plugin!

SAtacker avatar Jan 03 '23 18:01 SAtacker

perhaps for now you can simply clone the repo in a new directory where you have a single git remote, for navigation/copy_pasting purposes 🤔 would be awesome to support multiple remotes

Sleepful avatar Jun 06 '23 22:06 Sleepful

found this too https://github.com/ruanyl/vim-gh-line#working-with-multiple-remotes

Sleepful avatar Jun 06 '23 22:06 Sleepful