summaryrefslogtreecommitdiff
path: root/t/t5813-proto-disable-ssh.sh
diff options
context:
space:
mode:
authorDennis Kaarsemaker <dennis@kaarsemaker.net>2015-11-09 17:49:35 (GMT)
committerJeff King <peff@peff.net>2015-11-20 11:46:48 (GMT)
commit681390b3f618ebffb94de36e6de21665023f6e92 (patch)
treec1aa487d742e927c8c175d9f2465eb8caaf6a833 /t/t5813-proto-disable-ssh.sh
parentaf40944bda352190f05d22b7cb8fe88beb17f3a7 (diff)
downloadgit-681390b3f618ebffb94de36e6de21665023f6e92.zip
git-681390b3f618ebffb94de36e6de21665023f6e92.tar.gz
git-681390b3f618ebffb94de36e6de21665023f6e92.tar.bz2
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> Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 't/t5813-proto-disable-ssh.sh')
-rwxr-xr-xt/t5813-proto-disable-ssh.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t5813-proto-disable-ssh.sh b/t/t5813-proto-disable-ssh.sh
index ad877d7..a954ead 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