From: Justin Tobler Date: Tue, 15 Sep 2026 08:59:09 GMT Subject: Re: [PATCH 2/2] object-file: flush transaction packfile before migrating objects Message-ID: In-Reply-To: On 26/09/15 12:46AM, Karthik Nayak wrote: >Justin Tobler writes: >> +test_expect_success 'add large file with loose object in batch fsync' ' >> + test_when_finished "rm -rf batch" && >> + git init batch && >> + >> + git -C batch config core.bigFileThreshold 5 && > >Nit: we have `test_config` which automatically unsets after the test. >Perhaps not really needed here, as we drop 'batch' anyways. Ya, since we are deleting the repo here as part of this test, I don't think there is much need to cleanup the config right before deleting. I'll leave it as-is. >> + echo foo >batch/1-small && >> + echo foobar >batch/2-large && >> + >> + git -C batch -c core.fsync=loose-object -c core.fsyncMethod=batch \ >> + add 1-small 2-large && >> + >> + # Neither object may be left behind in a temporary location. >> + git -C batch cat-file -e :1-small && >> + git -C batch cat-file -e :2-large >> +' >> > >Looks good. Thanks for the review, -Justin