From e99d19e6a995c1ab04080bc84b4b982018f4513c Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Mon, 5 Oct 2015 08:31:15 +0000 Subject: [PATCH] t5813: do not use UNC paths In Windows, a double slash in the beginning of an absolute path denotes network paths of the form `\\localhost\share\file`. In Git for Windows' context, the same form is also available with forward slashes. Let's not start the path in the URL with a double slash (e.g. `ssh://host//usr/src/git/t/file`) but take pains to use the normalized form with a single slash, so that Git is not confusing the path for a UNC one. Signed-off-by: Johannes Schindelin --- t/t5813-proto-disable-ssh.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/t5813-proto-disable-ssh.sh b/t/t5813-proto-disable-ssh.sh index ad877d774a..a954ead8af 100755 --- a/t/t5813-proto-disable-ssh.sh +++ b/t/t5813-proto-disable-ssh.sh @@ -14,7 +14,7 @@ test_expect_success 'setup repository to clone' ' ' test_proto "host:path" ssh "remote:repo.git" -test_proto "ssh://" ssh "ssh://remote/$PWD/remote/repo.git" -test_proto "git+ssh://" ssh "git+ssh://remote/$PWD/remote/repo.git" +test_proto "ssh://" ssh "ssh://remote$PWD/remote/repo.git" +test_proto "git+ssh://" ssh "git+ssh://remote$PWD/remote/repo.git" test_done