3 test_description
='test GIT_CURL_VERBOSE'
4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
=main
5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME
8 .
"$TEST_DIRECTORY"/lib-httpd.sh
11 test_expect_success
'setup repository' '
12 mkdir "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
13 git -C "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" --bare init &&
14 git config push.default matching &&
18 git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
19 git push public main:main
22 test_expect_success
'failure in git-upload-pack is shown' '
23 test_might_fail env GIT_CURL_VERBOSE=1 \
24 git clone "$HTTPD_URL/error_git_upload_pack/smart/repo.git" \
26 grep "<= Recv header: HTTP/1.1 500 Intentional Breakage" curl_log