Merge branch 'ar/submodule-add-config'
[git/debian.git] / t / t5811-proto-disable-git.sh
blob8ac6b2a1d0a286cac120c751e5e3038e465dc074
1 #!/bin/sh
3 test_description='test disabling of git-over-tcp in clone/fetch'
4 . ./test-lib.sh
5 . "$TEST_DIRECTORY/lib-proto-disable.sh"
6 . "$TEST_DIRECTORY/lib-git-daemon.sh"
7 start_git_daemon
9 test_expect_success 'create git-accessible repo' '
10 bare="$GIT_DAEMON_DOCUMENT_ROOT_PATH/repo.git" &&
11 test_commit one &&
12 git --bare init "$bare" &&
13 git push "$bare" HEAD &&
14 >"$bare/git-daemon-export-ok" &&
15 git -C "$bare" config daemon.receivepack true
18 test_proto "git://" git "$GIT_DAEMON_URL/repo.git"
20 test_done