From: Junio C Hamano Date: Wed, 05 Mar 2008 10:09:07 GMT Subject: [PATCH 2/3] t5300: add test for "unpack-objects --strict" Message-ID: <1204711748-10044-2-git-send-email-gitster@pobox.com> In-Reply-To: <1204711748-10044-1-git-send-email-gitster@pobox.com> This adds test for unpacking deltified objects with --strict option. - unpacking full trees with --strict should pass; - unpacking only trees with --strict should be rejected due to missing blobs; - unpacking only trees with --strict into an existing repository with necessary blobs should succeed. Signed-off-by: Junio C Hamano --- * Third time lucky. t/t5300-pack-object.sh | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 49 insertions(+), 0 deletions(-) diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index cd3c149..b297393 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -274,4 +274,53 @@ test_expect_success \ packname_4=$(git pack-objects test-4 LIST && + rm -f .git/index && + git update-index --index-info