]> git.ipfire.org Git - thirdparty/git.git/commit - connect.c
t5500: show user name and host in diag-url
authorTorsten Bögershausen <tboegi@web.de>
Sat, 21 Feb 2015 15:52:55 +0000 (16:52 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 22 Feb 2015 20:04:01 +0000 (12:04 -0800)
commit3f55ccab8e0fec73c8e38b909e9bb4963bfb8f6a
tree97b620c4487f3f9c71e64de02067d8e6d268cd12
parent9f6976528b31356ee522d04aa31b86a3ba922f99
t5500: show user name and host in diag-url

The URL for ssh may have include a username before the hostname,
like ssh://user@host/repo.
When literal IPV6 addresses are used together with a username,
the substring "user@[::1]" must be converted into "user@::1".

Make that conversion visible for the user, and write userandhost
in the diagnostics

Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
connect.c
t/t5500-fetch-pack.sh