diff options
author | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:16:03 +0900 |
---|---|---|
committer | DongHun Kwak <dh0128.kwak@samsung.com> | 2021-03-03 15:16:03 +0900 |
commit | e0c2b742e0fece8aeee415331f0b988dd7765abd (patch) | |
tree | 426097b4cfbdac84ab83608a0729a405161be922 /t/t5813-proto-disable-ssh.sh | |
parent | 80d860087299ec96f57e3b6404832d3019c0edc3 (diff) | |
download | git-e0c2b742e0fece8aeee415331f0b988dd7765abd.tar.gz git-e0c2b742e0fece8aeee415331f0b988dd7765abd.tar.bz2 git-e0c2b742e0fece8aeee415331f0b988dd7765abd.zip |
Imported Upstream version 2.12.0upstream/2.12.0
Diffstat (limited to 't/t5813-proto-disable-ssh.sh')
-rwxr-xr-x | t/t5813-proto-disable-ssh.sh | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/t/t5813-proto-disable-ssh.sh b/t/t5813-proto-disable-ssh.sh index 3f084ee3..a954ead8 100755 --- a/t/t5813-proto-disable-ssh.sh +++ b/t/t5813-proto-disable-ssh.sh @@ -17,27 +17,4 @@ 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" -# Don't even bother setting up a "-remote" directory, as ssh would generally -# complain about the bogus option rather than completing our request. Our -# fake wrapper actually _can_ handle this case, but it's more robust to -# simply confirm from its output that it did not run at all. -test_expect_success 'hostnames starting with dash are rejected' ' - test_must_fail git clone ssh://-remote/repo.git dash-host 2>stderr && - ! grep ^ssh: stderr -' - -test_expect_success 'setup repo with dash' ' - git init --bare remote/-repo.git && - git push remote/-repo.git HEAD -' - -test_expect_success 'repo names starting with dash are rejected' ' - test_must_fail git clone remote:-repo.git dash-path 2>stderr && - ! grep ^ssh: stderr -' - -test_expect_success 'full paths still work' ' - git clone "remote:$PWD/remote/-repo.git" dash-path -' - test_done |