-
Notifications
You must be signed in to change notification settings - Fork 703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
internal: url, support more scp-like URLs #324
Conversation
can you take a look to the testS? |
port numbers cannot start with `0`
I rewrote some things in the tests.
I tried my best, but I'm worried about breaking compatibility, here. Investigating a bit deeper, I found that On github (connection should be refused):
With
You can see that git does not recognize my port, here, and tries to connect to Ran on my MacBook Pro, with an sshd running at port 2222
According the the
What should I do: stick to git specification or maintain |
Support backward compatibility is the best in this case. |
My PR to this issue got closed as duplicate - this one is apparently dead. What is the way forward here? |
Closing as this was fixed by #715. |
SCP-like URLs do not necessarily need to have a prefix followed by a
/
in the path.For example, if a git repository is located at
/test-repo.git
on a remote, the following command is valid.As long as
user
can use SSH to log into the remote (which might be described in SSH config),git
will attempt to clone the repo at the given path.I removed the
/
as separator for the port as it interfered with this URL scheme, but I might have missed the rationale for this. Feel free to explain, and I will update the PR accordingly.