On 27.05.16 23:59, Mike Hommey wrote: > On Fri, May 27, 2016 at 04:24:20PM +0200, Torsten Bögershausen wrote: >> On 27.05.16 04:27, Mike Hommey wrote: >>> Changes from v7: >>> - Fixed comments. >>> >>> Mike Hommey (9): All in all, a great improvement. 2 things left. - The comment about [] is now stale, isn't it ? - The legacy support should only be active for ssh, and not be used by other schemes. diff --git a/connect.c b/connect.c index 076ae09..79b8dae 100644 --- a/connect.c +++ b/connect.c @@ -618,10 +618,6 @@ static enum protocol parse_connect_url(const char *url_orig, char **ret_user, } } - /* - * Don't do destructive transforms as protocol code does - * '[]' unwrapping in get_host_and_port() - */ end = host_end(&host, 0); if (protocol == PROTO_LOCAL) @@ -673,7 +669,7 @@ static enum protocol parse_connect_url(const char *url_orig, char **ret_user, * "host:port" and NULL. * To support this undocumented legacy we still need to split the port. */ - if (!port) + if (!port && protocol == PROTO_SSH) port = get_port(host); *ret_user = user ? xstrdup(user) : NULL; -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html