From c0e809e5c027443d6f77714a1c5f8c6233ca0a20 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Wed, 5 Mar 2008 00:14:32 -0800 Subject: t5300: add test for "unpack-objects --strict" 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 --- t/t5300-pack-object.sh | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 't') diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index cd3c149800..ffc638ab2c 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -274,4 +274,52 @@ test_expect_success \ packname_4=$(git pack-objects test-4 LIST && + rm -f .git/index && + git update-index --index-info