Skip to content

Commit 125f643

Browse files
committed
Merge branch 'rs/ipv6-ssh-url' into maint
* rs/ipv6-ssh-url: git: Wrong parsing of ssh urls with IPv6 literals ignores port
2 parents e597c43 + 7acf438 commit 125f643

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ struct child_process *git_connect(int fd[2], const char *url_orig,
536536
* Add support for ssh port: ssh://host.xy:<port>/...
537537
*/
538538
if (protocol == PROTO_SSH && host != url)
539-
port = get_port(host);
539+
port = get_port(end);
540540

541541
if (protocol == PROTO_GIT) {
542542
/* These underlying connection commands die() if they

0 commit comments

Comments
 (0)