mirror of
https://github.com/git/git.git
synced 2024-11-06 01:03:02 +01:00
Merge branch 'rs/ipv6-ssh-url'
ssh:// URLs to IPv6 hosts with custom port number were parsed incorrectly. * rs/ipv6-ssh-url: git: Wrong parsing of ssh urls with IPv6 literals ignores port
This commit is contained in:
commit
8e4a819ac9
1 changed files with 1 additions and 1 deletions
|
@ -536,7 +536,7 @@ struct child_process *git_connect(int fd[2], const char *url_orig,
|
|||
* Add support for ssh port: ssh://host.xy:<port>/...
|
||||
*/
|
||||
if (protocol == PROTO_SSH && host != url)
|
||||
port = get_port(host);
|
||||
port = get_port(end);
|
||||
|
||||
if (protocol == PROTO_GIT) {
|
||||
/* These underlying connection commands die() if they
|
||||
|
|
Loading…
Reference in a new issue