{"thread":{"id":"19677","subject":"[PATCH 02/23] t5540-http-push: test fetching of packed objects","startedAt":"2009-06-05T16:00:30Z","lastAt":"2009-06-05T16:00:30Z","messageCount":1,"participants":["Tay Ray Chuan"],"isPatch":true,"patchVersion":1,"patchTotal":23},"messages":[{"id":"115513","messageId":"20090606000030.35be616e.rctay89@gmail.com","threadId":"19677","inReplyTo":null,"subject":"[PATCH 02/23] t5540-http-push: test fetching of packed objects","fromName":"Tay Ray Chuan","fromEmail":"rctay89@gmail.com","sentAt":"2009-06-05T16:00:30Z","receivedAt":"2009-06-05T16:00:30Z","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 |   20 ++++++++++++++++++++\n 1 files changed, 20 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t5540-http-push.sh b/t/t5540-http-push.sh\nindex 65a41db..ad0f14b 100755\n--- a/t/t5540-http-push.sh\n+++ b/t/t5540-http-push.sh\n@@ -83,6 +83,26 @@ test_expect_failure 'http-push fetches unpacked objects' '\n \t git push -f -v $HTTPD_URL/test_repo_unpacked.git master)\n '\n\n+test_expect_failure 'http-push fetches packed objects' '\n+\tcp -R \"$HTTPD_DOCUMENT_ROOT_PATH\"/test_repo.git \\\n+\t\t\"$HTTPD_DOCUMENT_ROOT_PATH\"/test_repo_packed.git &&\n+\n+\tgit clone $HTTPD_URL/test_repo_packed.git \\\n+\t\t\"$ROOT_PATH\"/test_repo_clone_packed &&\n+\n+\t(cd \"$HTTPD_DOCUMENT_ROOT_PATH\"/test_repo_packed.git &&\n+\t git --bare repack &&\n+\t git --bare prune-packed) &&\n+\n+\t# By reset, we force git to retrieve the packed object\n+\t(cd \"$ROOT_PATH\"/test_repo_clone_packed &&\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_packed.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"}]}