]> git.ipfire.org Git - thirdparty/git.git/blob - t/t5811-proto-disable-git.sh
The second batch
[thirdparty/git.git] / t / t5811-proto-disable-git.sh
1 #!/bin/sh
2
3 test_description='test disabling of git-over-tcp in clone/fetch'
4
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./test-lib.sh
7 . "$TEST_DIRECTORY/lib-proto-disable.sh"
8 . "$TEST_DIRECTORY/lib-git-daemon.sh"
9 start_git_daemon
10
11 test_expect_success 'create git-accessible repo' '
12 bare="$GIT_DAEMON_DOCUMENT_ROOT_PATH/repo.git" &&
13 test_commit one &&
14 git --bare init "$bare" &&
15 git push "$bare" HEAD &&
16 >"$bare/git-daemon-export-ok" &&
17 git -C "$bare" config daemon.receivepack true
18 '
19
20 test_proto "git://" git "$GIT_DAEMON_URL/repo.git"
21
22 test_done