Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t5581-http-curl-verbose.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t5581-http-curl-verbose.sh` 29 lines ยท 808 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='test GIT_CURL_VERBOSE' 4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 6 7 . ./test-lib.sh 8 . "$TEST_DIRECTORY"/lib-httpd.sh 9 start_httpd 10 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 && 15 echo content >file && 16 git add file && 17 git commit -m one && 18 git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" && 19 git push public main:main 20 ' 21 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" \ 25 2>curl_log && 26 test_grep "<= Recv header: HTTP/1.1 500 Intentional Breakage" curl_log 27 ' 28 29 test_done