]>
Commit | Line | Data |
---|---|---|
a5adaced JK |
1 | #!/bin/sh |
2 | ||
3 | test_description='test disabling of git-over-tcp in clone/fetch' | |
badf2fe1 JK |
4 | |
5 | TEST_PASSES_SANITIZE_LEAK=true | |
a5adaced JK |
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 |