Git fork
at reftables-rust 21 lines 512 B view raw
1#!/bin/sh 2 3test_description='test disabling of git-over-tcp in clone/fetch' 4 5. ./test-lib.sh 6. "$TEST_DIRECTORY/lib-proto-disable.sh" 7. "$TEST_DIRECTORY/lib-git-daemon.sh" 8start_git_daemon 9 10test_expect_success 'create git-accessible repo' ' 11 bare="$GIT_DAEMON_DOCUMENT_ROOT_PATH/repo.git" && 12 test_commit one && 13 git --bare init "$bare" && 14 git push "$bare" HEAD && 15 >"$bare/git-daemon-export-ok" && 16 git -C "$bare" config daemon.receivepack true 17' 18 19test_proto "git://" git "$GIT_DAEMON_URL/repo.git" 20 21test_done