Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 6406bdc0b95715a087fdeeb0f6adf3deb80a25b8 authored by Junio C Hamano on 03 October 2016, 20:24:18 UTC
Git 2.10.1
Tip revision: 6406bdc
t5813-proto-disable-ssh.sh
#!/bin/sh

test_description='test disabling of git-over-ssh in clone/fetch'
. ./test-lib.sh
. "$TEST_DIRECTORY/lib-proto-disable.sh"

setup_ssh_wrapper

test_expect_success 'setup repository to clone' '
	test_commit one &&
	mkdir remote &&
	git init --bare remote/repo.git &&
	git push remote/repo.git HEAD
'

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_done
back to top