3 test_description='test GIT_CURL_VERBOSE'
5 . "$TEST_DIRECTORY"/lib-httpd.sh
8 test_expect_success 'setup repository' '
9 mkdir "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
10 git -C "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" --bare init &&
11 git config push.default matching &&
15 git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
16 git push public master:master
19 test_expect_success 'failure in git-upload-pack is shown' '
20 test_might_fail env GIT_CURL_VERBOSE=1 \
21 git clone "$HTTPD_URL/error_git_upload_pack/smart/repo.git" \
23 grep "<= Recv header: HTTP/1.1 500 Intentional Breakage" curl_log