Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'rs/ipv6-ssh-url'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 25 Jun 2012 18:25:06 +0000
(11:25 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 25 Jun 2012 18:25:06 +0000
(11:25 -0700)
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
connect.c
patch
|
blob
|
history
raw
(from parent 1:
dd39379
)
diff --git
a/connect.c
b/connect.c
index 912cddeea8c4f09ec523ce19e677358c84eda9b7..41b7400aa92d7c07db269de9658b9f961db9becf 100644
(file)
--- a/
connect.c
+++ b/
connect.c
@@
-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