path: root/builtin
diff options
authorJeff King <>2018-10-30 23:18:51 (GMT)
committerJunio C Hamano <>2018-10-31 03:53:44 (GMT)
commit5632baf238c09b2556c92897bcf0d1fc236499ba (patch)
tree66d4d3084abd0eb202c0e9d02c76b0d53d82830b /builtin
parent9752ad0bb79f680bca48db7adc45338b298304b0 (diff)
t1450: check large blob in trailing-garbage test
Commit cce044df7f (fsck: detect trailing garbage in all object types, 2017-01-13) added two tests of trailing garbage in a loose object file: one with a commit and one with a blob. The point of having two is that blobs would follow a different code path that streamed the contents, instead of loading it into a buffer as usual. At the time, merely being a blob was enough to trigger the streaming code path. But since 7ac4f3a007 (fsck: actually fsck blob data, 2018-05-02), we now only stream blobs that are actually large. So since then, the streaming code path is not tested at all for this case. We can restore the original intent of the test by tweaking core.bigFileThreshold to make our small blob seem large. There's no easy way to externally verify that we followed the streaming code path, but I did check before/after using a temporary debug statement. Signed-off-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin')
0 files changed, 0 insertions, 0 deletions