]> git.ipfire.org Git - thirdparty/git.git/blame - t/t5811-proto-disable-git.sh
The third batch
[thirdparty/git.git] / t / t5811-proto-disable-git.sh
CommitLineData
a5adaced
JK
1#!/bin/sh
2
3test_description='test disabling of git-over-tcp in clone/fetch'
badf2fe1
JK
4
5TEST_PASSES_SANITIZE_LEAK=true
a5adaced
JK
6. ./test-lib.sh
7. "$TEST_DIRECTORY/lib-proto-disable.sh"
8. "$TEST_DIRECTORY/lib-git-daemon.sh"
9start_git_daemon
10
11test_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
20test_proto "git://" git "$GIT_DAEMON_URL/repo.git"
21
22test_done