diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-09-29 22:28:24 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-09-29 22:28:25 -0700 |
commit | fb1e4a85bf7eb2df819a888d7db3ecececa1b7fc (patch) | |
tree | 0d684a95ff8879c5fbfcf93475c46c7a7255279d /t | |
parent | c318040a3633475b591d9b9ece5877df415cf1d8 (diff) | |
parent | 02572c2e3afcc200936260f48863447726212a7c (diff) | |
download | git-fb1e4a85bf7eb2df819a888d7db3ecececa1b7fc.tar.gz git-fb1e4a85bf7eb2df819a888d7db3ecececa1b7fc.tar.xz |
Merge branch 'jk/smart-http-switch'
Allows users to turn off smart-http when talking to dumb-only
servers.
* jk/smart-http-switch:
remote-curl: let users turn off smart http
remote-curl: rename is_http variable
Diffstat (limited to 't')
-rwxr-xr-x | t/t5551-http-fetch.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5551-http-fetch.sh b/t/t5551-http-fetch.sh index 380c17541..5060879d6 100755 --- a/t/t5551-http-fetch.sh +++ b/t/t5551-http-fetch.sh @@ -130,6 +130,18 @@ test_expect_success 'clone from auth-only-for-push repository' ' test_cmp expect actual ' +test_expect_success 'disable dumb http on server' ' + git --git-dir="$HTTPD_DOCUMENT_ROOT_PATH/repo.git" \ + config http.getanyfile false +' + +test_expect_success 'GIT_SMART_HTTP can disable smart http' ' + (GIT_SMART_HTTP=0 && + export GIT_SMART_HTTP && + cd clone && + test_must_fail git fetch) +' + test -n "$GIT_TEST_LONG" && test_set_prereq EXPENSIVE test_expect_success EXPENSIVE 'create 50,000 tags in the repo' ' |