From: Martin Koegler Date: Fri, 07 Mar 2008 07:39:53 GMT Subject: [PATCH] t5300: add test for "index-pack --strict" Message-ID: <12048755932645-git-send-email-mkoegler@auto.tuwien.ac.at> This adds test for indexing packs with --strict option, basically the same as c0e809e5c027443d6f77714a1c5f8c6233ca0a20 do for unpack-objects. Signed-off-by: Martin Koegler --- t/t5300-pack-object.sh | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index 7647f21..007b136 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