summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-04-27 20:57:49 (GMT)
committerJunio C Hamano <gitster@pobox.com>2012-04-27 20:57:49 (GMT)
commit157a4767a56e37def5e156b60f03ee220208d8fb (patch)
tree6ec9c8cf5c2cc3c0a34354e4832d70056a2c5930 /t
parent010b260e6f23b8964ef53b989e1c1baa8973edbe (diff)
parent6f4c347ca1d3102d77e2dd36b6bc8ab12de6045b (diff)
downloadgit-157a4767a56e37def5e156b60f03ee220208d8fb.zip
git-157a4767a56e37def5e156b60f03ee220208d8fb.tar.gz
git-157a4767a56e37def5e156b60f03ee220208d8fb.tar.bz2
Merge branch 'cb/http-multi-curl-auth'
Fixes http authentication breakage when we keep multiple HTTP requests in flight using curl-multi. By Jeff King (3) and Clemens Buchacher (1) * cb/http-multi-curl-auth: http: use newer curl options for setting credentials http: clean up leak in init_curl_http_auth fix http auth with multiple curl handles http auth fails with multiple curl handles
Diffstat (limited to 't')
-rwxr-xr-xt/t5550-http-fetch.sh15
1 files changed, 10 insertions, 5 deletions
diff --git a/t/t5550-http-fetch.sh b/t/t5550-http-fetch.sh
index e5e6b8f..b06f817 100755
--- a/t/t5550-http-fetch.sh
+++ b/t/t5550-http-fetch.sh
@@ -13,17 +13,22 @@ LIB_HTTPD_PORT=${LIB_HTTPD_PORT-'5550'}
start_httpd
test_expect_success 'setup repository' '
- echo content >file &&
+ echo content1 >file &&
git add file &&
git commit -m one
+ echo content2 >file &&
+ git add file &&
+ git commit -m two
'
-test_expect_success 'create http-accessible bare repository' '
- mkdir "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
+test_expect_success 'create http-accessible bare repository with loose objects' '
+ cp -a .git "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
(cd "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
- git --bare init &&
+ git config core.bare true &&
+ mkdir -p hooks &&
echo "exec git update-server-info" >hooks/post-update &&
- chmod +x hooks/post-update
+ chmod +x hooks/post-update &&
+ hooks/post-update
) &&
git remote add public "$HTTPD_DOCUMENT_ROOT_PATH/repo.git" &&
git push public master:master