From: Junio C Hamano Date: Wed, 05 Mar 2008 09:17:41 GMT Subject: [PATCH v2] t5300: add test for "unpack-objects --strict" Message-ID: <7vod9to7gq.fsf_-_@gitster.siamese.dyndns.org> In-Reply-To: <7v4pblpng7.fsf@gitster.siamese.dyndns.org> 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 --- * The pack created by the test of the original one contained only trees and unpacked into an empty repository, and --strict has every right to complain. It was not a good test. t/t5300-pack-object.sh | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 46 insertions(+), 0 deletions(-) diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index cd3c149..2e70e5f 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -274,4 +274,50 @@ test_expect_success \ packname_4=$(git pack-objects test-4 LIST && + rm -f .git/index && + git update-index --index-info