From 38a5739dfadd41c9e45bb05ed6fe1559895360cb Mon Sep 17 00:00:00 2001 From: Martin Koegler Date: Fri, 7 Mar 2008 08:39:53 +0100 Subject: [PATCH] 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 --- t/t5300-pack-object.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 7647f2142b..007b136fe6 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