{"thread":{"id":"19678","subject":"[PATCH 01/23] t5540-http-push: test fetching of loose objects","startedAt":"2009-06-05T16:00:28Z","lastAt":"2009-06-05T16:00:28Z","messageCount":1,"participants":["Tay Ray Chuan"],"isPatch":true,"patchVersion":1,"patchTotal":23},"messages":[{"id":"115514","messageId":"20090606000028.3cc038b4.rctay89@gmail.com","threadId":"19678","inReplyTo":null,"subject":"[PATCH 01/23] t5540-http-push: test fetching of loose objects","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-06-05T16:00:28Z","receivedAt":"2009-06-05T16:00:28Z","isPatch":true,"sender":{"key":"rctay89@gmail.com","avatar":"https://avatars.githubusercontent.com/u/61553?v=4"},"body":"\nSigned-off-by: Tay Ray Chuan <rctay89@gmail.com>\n---\n t/t5540-http-push.sh |   16 ++++++++++++++++\n 1 files changed, 16 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh\nindex 5fe479e..65a41db 100755\n--- a/t/t5540-http-push.sh\n+++ b/t/t5540-http-push.sh\n@@ -67,6 +67,22 @@ test_expect_success ' push to remote repository with unpacked refs' '\n \t test $HEAD = $(git rev-parse --verify HEAD))\n '\n\n+test_expect_failure 'http-push fetches unpacked objects' '\n+\tcp -R \"$HTTPD_DOCUMENT_ROOT_PATH\"/test_repo.git \\\n+\t\t\"$HTTPD_DOCUMENT_ROOT_PATH\"/test_repo_unpacked.git &&\n+\n+\tgit clone $HTTPD_URL/test_repo_unpacked.git \\\n+\t\t\"$ROOT_PATH\"/fetch_unpacked &&\n+\n+\t# By reset, we force git to retrieve the object\n+\t(cd \"$ROOT_PATH\"/fetch_unpacked &&\n+\t git reset --hard HEAD^ &&\n+\t git remote rm origin &&\n+\t git reflog expire --expire=0 --all &&\n+\t git prune &&\n+\t git push -f -v $HTTPD_URL/test_repo_unpacked.git master)\n+'\n+\n test_expect_success 'create and delete remote branch' '\n \tcd \"$ROOT_PATH\"/test_repo_clone &&\n \tgit checkout -b dev &&\n--\n1.6.3.1\n"}]}