{"thread":{"id":"43769","subject":"[PATCH 5/5] add tests for shallow stuff","startedAt":"2006-10-30T19:10:13Z","lastAt":"2006-10-30T19:10:13Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":true,"patchVersion":1,"patchTotal":5},"messages":[{"id":"298400","messageId":"Pine.LNX.4.63.0610302010040.26682@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"43769","inReplyTo":null,"subject":"[PATCH 5/5] add tests for shallow stuff","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2006-10-30T19:10:13Z","receivedAt":"2006-10-30T19:10:13Z","isPatch":true,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nSigned-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>\n---\n t/t5500-fetch-pack.sh |   45 +++++++++++++++++++++++++++++++++++++++++++++\n 1 files changed, 45 insertions(+), 0 deletions(-)\n\ndiff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh\nindex f7625a6..fa10840 100755\n--- a/t/t5500-fetch-pack.sh\n+++ b/t/t5500-fetch-pack.sh\n@@ -128,4 +128,49 @@ pull_to_client 2nd \"B\" $((64*3))\n \n pull_to_client 3rd \"A\" $((1*3)) # old fails\n \n+test_expect_success \"clone shallow\" \"git-clone --depth 2 . shallow\"\n+\n+(cd shallow; git-count-objects -v) > count.shallow\n+\n+test_expect_success \"clone shallow object count\" \\\n+\t\"test \\\"in-pack: 18\\\" = \\\"$(grep in-pack count.shallow)\\\"\"\n+\n+test_expect_success \"clone shallow object count (part 2)\" \\\n+\t\"test -z \\\"$(grep -v in-pack count.shallow | sed \"s/^.*: 0//\")\\\"\"\n+\n+test_expect_success \"fsck in shallow repo\" \\\n+\t\"(cd shallow; git-fsck-objects --full)\"\n+\n+#test_done; exit\n+\n+add B66 $B65\n+add B67 $B66\n+\n+test_expect_success \"pull in shallow repo\" \\\n+\t\"(cd shallow; git pull .. B)\"\n+\n+(cd shallow; git-count-objects -v) > count.shallow\n+test_expect_success \"clone shallow object count\" \\\n+\t\"test \\\"count: 6\\\" = \\\"$(grep count count.shallow)\\\"\"\n+\n+add B68 $B67\n+add B69 $B68\n+\n+test_expect_success \"deepening pull in shallow repo\" \\\n+\t\"(cd shallow; git pull --depth 4 .. B)\"\n+\n+(cd shallow; git-count-objects -v) > count.shallow\n+test_expect_success \"clone shallow object count\" \\\n+\t\"test \\\"count: 12\\\" = \\\"$(grep count count.shallow)\\\"\"\n+\n+test_expect_success \"deepening fetch in shallow repo\" \\\n+\t\"(cd shallow; git fetch --depth 4 .. A:A)\"\n+\n+(cd shallow; git-count-objects -v) > count.shallow\n+test_expect_success \"clone shallow object count\" \\\n+\t\"test \\\"count: 18\\\" = \\\"$(grep count count.shallow)\\\"\"\n+\n+test_expect_failure \"pull in shallow repo with missing merge base\" \\\n+\t\"(cd shallow; git pull --depth 4 .. A)\"\n+\n test_done\n-- \n1.4.3.3.gca42\n"}]}