Skip to content

Commit aff4cb6

Browse files
committed
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 <[email protected]>
1 parent 26b4485 commit aff4cb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

t/t5813-proto-disable-ssh.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ test_expect_success 'setup repository to clone' '
1414
'
1515

1616
test_proto "host:path" ssh "remote:repo.git"
17-
test_proto "ssh://" ssh "ssh://remote/$PWD/remote/repo.git"
18-
test_proto "git+ssh://" ssh "git+ssh://remote/$PWD/remote/repo.git"
17+
test_proto "ssh://" ssh "ssh://remote$PWD/remote/repo.git"
18+
test_proto "git+ssh://" ssh "git+ssh://remote$PWD/remote/repo.git"
1919

2020
test_done

0 commit comments

Comments
 (0)