diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/t1050-large.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t1050-large.sh b/t/t1050-large.sh index 3f806889a9..fd10528009 100755 --- a/t/t1050-large.sh +++ b/t/t1050-large.sh @@ -139,6 +139,18 @@ test_expect_success 'repack' ' git repack -ad ' +test_expect_success 'pack-objects with large loose object' ' + SHA1=`git hash-object huge` && + test_create_repo loose && + echo $SHA1 | git pack-objects --stdout | + GIT_ALLOC_LIMIT=0 GIT_DIR=loose/.git git unpack-objects && + echo $SHA1 | GIT_DIR=loose/.git git pack-objects pack && + test_create_repo packed && + mv pack-* packed/.git/objects/pack && + GIT_DIR=packed/.git git cat-file blob $SHA1 >actual && + cmp huge actual +' + test_expect_success 'tar achiving' ' git archive --format=tar HEAD >/dev/null ' |