petertriho / cmp-git

Git source for nvim-cmp
MIT License
396 stars 23 forks source link

fix: ssh port in remote url #56

Closed msvechla closed 1 year ago

msvechla commented 1 year ago

Hi,

We have a non standard port for our ssh remote, therefore the host detection does not work correctly. This MR fixes this by ignoring an optional port.

Example remote:

ssh://git@git.my-company.com:11111/group/repo.git

I tested this MR locally and it is working now for our remote with non-default port.

petertriho commented 1 year ago

Thank you