]> git.ipfire.org Git - thirdparty/git.git/blame - t/t5813-proto-disable-ssh.sh
git-p4: don't use name-rev to get current branch
[thirdparty/git.git] / t / t5813-proto-disable-ssh.sh
CommitLineData
a5adaced
JK
1#!/bin/sh
2
3test_description='test disabling of git-over-ssh in clone/fetch'
4. ./test-lib.sh
5. "$TEST_DIRECTORY/lib-proto-disable.sh"
6
7setup_ssh_wrapper
8
9test_expect_success 'setup repository to clone' '
10 test_commit one &&
11 mkdir remote &&
12 git init --bare remote/repo.git &&
13 git push remote/repo.git HEAD
14'
15
16test_proto "host:path" ssh "remote:repo.git"
681390b3
DK
17test_proto "ssh://" ssh "ssh://remote$PWD/remote/repo.git"
18test_proto "git+ssh://" ssh "git+ssh://remote$PWD/remote/repo.git"
a5adaced
JK
19
20test_done