diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-07-28 10:34:42 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-07-28 10:34:42 -0700 |
commit | ad2d77760434e1650c186c71fa04a8fdbd77266c (patch) | |
tree | e6f51ef4203047bda1d108bed7f3ca35196d8b4c /t/t1050-large.sh | |
parent | 2c608e0f7c1f0fb9fb3e42eb737d7b8543e11400 (diff) | |
parent | ec9d224903053e045d99c36149703501098b021c (diff) | |
download | git-ad2d77760434e1650c186c71fa04a8fdbd77266c.tar.gz git-ad2d77760434e1650c186c71fa04a8fdbd77266c.tar.xz |
Merge branch 'nd/pack-ofs-4gb-limit'
"git pack-objects" and "git index-pack" mostly operate with off_t
when talking about the offset of objects in a packfile, but there
were a handful of places that used "unsigned long" to hold that
value, leading to an unintended truncation.
* nd/pack-ofs-4gb-limit:
fsck: use streaming interface for large blobs in pack
pack-objects: do not truncate result in-pack object size on 32-bit systems
index-pack: correct "offset" type in unpack_entry_data()
index-pack: report correct bad object offsets even if they are large
index-pack: correct "len" type in unpack_data()
sha1_file.c: use type off_t* for object_info->disk_sizep
pack-objects: pass length to check_pack_crc() without truncation
Diffstat (limited to 't/t1050-large.sh')
-rwxr-xr-x | t/t1050-large.sh | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/t/t1050-large.sh b/t/t1050-large.sh index f9f3d1391..096dbffec 100755 --- a/t/t1050-large.sh +++ b/t/t1050-large.sh @@ -177,10 +177,9 @@ test_expect_success 'zip achiving, deflate' ' git archive --format=zip HEAD >/dev/null ' -test_expect_success 'fsck' ' - test_must_fail git fsck 2>err && - n=$(grep "error: attempting to allocate .* over limit" err | wc -l) && - test "$n" -gt 1 +test_expect_success 'fsck large blobs' ' + git fsck 2>err && + test_must_be_empty err ' test_done |