t0013: add a basic sha1 collision detection test
[git] / t / t5811-proto-disable-git.sh
1 #!/bin/sh
2
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
8
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
16 '
17
18 test_proto "git://" git "$GIT_DAEMON_URL/repo.git"
19
20 test_done