X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft5300-pack-object.sh;h=983a39398f17dc2b261771e780e8c010f038a12a;hb=6d2c1c2dc064c40f6c723e0a25b5f813732fdaff;hp=cd3c149800395553cc973317ef41e89e53771f60;hpb=378b2607f07bd2fa0eaa8648e7dc8db636708d74;p=git.git diff --git a/t/t5300-pack-object.sh b/t/t5300-pack-object.sh index cd3c14980..983a39398 100755 --- a/t/t5300-pack-object.sh +++ b/t/t5300-pack-object.sh @@ -15,7 +15,7 @@ test_expect_success \ 'rm -f .git/index* for i in a b c do - dd if=/dev/zero bs=4k count=1 | tr "\\000" $i >$i && + dd if=/dev/zero bs=4k count=1 | perl -pe "y/\\000/$i/" >$i && git update-index --add $i || return 1 done && cat c >d && echo foo >>d && git update-index --add d && @@ -274,4 +274,99 @@ test_expect_success \ packname_4=$(git pack-objects test-4 LIST && + rm -f .git/index && + git update-index --index-info LIST && + rm -f .git/index && + git update-index --index-info