diff --git a/pack-check.c b/pack-check.c index c7275f4b92..605811b7b0 100644 --- a/pack-check.c +++ b/pack-check.c @@ -134,7 +134,7 @@ static int verify_packfile(struct repository *r, unuse_pack(w_curs); if (type == OBJ_BLOB && - repo_settings_get_big_file_threshold(r) <= size) { + repo_settings_get_big_file_threshold(r) < size) { /* * Let stream_object_signature() check it with * the streaming interface; no point slurping diff --git a/t/t1450-fsck.sh b/t/t1450-fsck.sh index 1b4074304c..16cc5d5dcb 100755 --- a/t/t1450-fsck.sh +++ b/t/t1450-fsck.sh @@ -1152,4 +1152,17 @@ test_expect_success 'fsck reports problems in current worktree index without fil test_cmp expect actual ' +test_expect_success 'fsck with blob size equal to core.bigFileThreshold' ' + test_when_finished rm -rf big-blob-fsck && + git init big-blob-fsck && + ( + cd big-blob-fsck && + test-tool genzeros 1024 >blob && + git add blob && + git commit -m "blob equal to threshold" && + git repack -ad && + git -c core.bigFileThreshold=1k fsck --no-dangling + ) +' + test_done