t5813: avoid creating urls that break on cygwin
commit0abfeaaea611d293135d122f6fd56a066698ae5f
authorDennis Kaarsemaker <dennis@kaarsemaker.net>
Mon, 9 Nov 2015 17:49:35 +0000 (9 18:49 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Tue, 10 Nov 2015 09:15:11 +0000 (10 10:15 +0100)
tree67b01035f4b0038b98aba2884c8cf01b2a49bae1
parent41d80ce5ef87f83abcff69aa2bc05e885f54fdd5
t5813: avoid creating urls that break on cygwin

When passed an ssh:// url, git strips ssh://host from the url but does
not remove leading slashes from the path. So when this test used
ssh://remote//path/to/pwd, the path accessed by our fake SSH is
//path/to/pwd, which cygwin interprets as a UNC path, causing the test
to fail.

We may want to actually fix this in git itself, making it remove extra
slashes from urls before feeding them to transports or helpers, but
that's for another topic as it could cause regressions.

Signed-off-by: Dennis Kaarsemaker <dennis@kaarsemaker.net>
t/t5813-proto-disable-ssh.sh