aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-11-12 15:29:25 -0800
committerJunio C Hamano <gitster@pobox.com>2021-11-12 15:29:25 -0800
commit2c0fa66bc81a0725cd65fda69640552361536e50 (patch)
treef93b70f2b4e240265c1660a3140c31b803a017fc /t
parentMerge branch 'ps/connectivity-optim' (diff)
parentobject-file: free(*contents) only in read_loose_object() caller (diff)
downloadgit-2c0fa66bc81a0725cd65fda69640552361536e50.tar.gz
git-2c0fa66bc81a0725cd65fda69640552361536e50.zip
Merge branch 'ab/fsck-unexpected-type'
Regression fix. * ab/fsck-unexpected-type: object-file: free(*contents) only in read_loose_object() caller object-file: fix SEGV on free() regression in v2.34.0-rc2
Diffstat (limited to 't')
-rwxr-xr-xt/t1050-large.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t1050-large.sh b/t/t1050-large.sh
index 4bab6a513c..6bc1d76fb1 100755
--- a/t/t1050-large.sh
+++ b/t/t1050-large.sh
@@ -17,6 +17,14 @@ test_expect_success setup '
export GIT_ALLOC_LIMIT
'
+test_expect_success 'enter "large" codepath, with small core.bigFileThreshold' '
+ test_when_finished "rm -rf repo" &&
+
+ git init --bare repo &&
+ echo large | git -C repo hash-object -w --stdin &&
+ git -C repo -c core.bigfilethreshold=4 fsck
+'
+
# add a large file with different settings
while read expect config
do