From: Martin Koegler Date: Fri, 7 Mar 2008 07:39:53 +0000 (+0100) Subject: t5300: add test for "index-pack --strict" X-Git-Tag: v1.5.6-rc0~156^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=38a5739dfadd41c9e45bb05ed6fe1559895360cb;p=git.git t5300: add test for "index-pack --strict" This adds test for indexing packs with --strict option, basically the same as c0e809e (t5300: add test for "unpack-objects --strict") has done for unpack-objects. Signed-off-by: Martin Koegler Signed-off-by: Junio C Hamano --- diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 7647f2142..007b136fe 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -322,4 +322,51 @@ test_expect_success 'unpacking with --strict' ' ) ' +test_expect_success 'index-pack with --strict' ' + + for j in a b c d e f g + do + for i in 0 1 2 3 4 5 6 7 8 9 + do + o=$(echo $j$i | git hash-object -w --stdin) && + echo "100644 $o 0 $j$i" + done + done >LIST && + rm -f .git/index && + git update-index --index-info