From: Junio C Hamano Date: Wed, 5 Mar 2008 08:14:32 +0000 (-0800) Subject: t5300: add test for "unpack-objects --strict" X-Git-Tag: v1.5.6-rc0~156^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c0e809e;p=git.git 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 --- diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index cd3c14980..ffc638ab2 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