[PATCH 01/20] t9300: move 'fastimport.unpackLimit' to the required test
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Nov 10, 2026, 11:49 UTC
- Message-ID
- <20261110-kn-fast-import-tests-1-v1-1-dbd9ee502aae@gmail.com>
- In-Reply-To
- <20261110-kn-fast-import-tests-1-v1-0-dbd9ee502aae@gmail.com>
The 'empty stream succeeds' test sets 'fastimport.unpackLimit' to '0', so that the following imports write packs for the 'verify pack' tests to check. The test itself doesn't need it. A following commit makes it run in its own repository, where the setting would no longer reach the tests after it.
Move the configuration to 'A: create pack from stdin', the first test which needs it. The configuration must persist for the 'verify pack' tests of the following series, so set it with 'git config' and not with 'test_config'.
Signed-off-by: Karthik Nayak <karthik.188@gmail.com> --- t/t9300-fast-import.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/t/t9300-fast-import.sh b/t/t9300-fast-import.sh index 73c6e3d448..fb23492202 100755 --- a/t/t9300-fast-import.sh +++ b/t/t9300-fast-import.sh @@ -38,7 +38,6 @@ echo "$@"' ### test_expect_success 'empty stream succeeds' ' - git config fastimport.unpackLimit 0 && git fast-import </dev/null ' @@ -47,6 +46,7 @@ test_expect_success 'truncated stream complains' ' ' test_expect_success 'A: create pack from stdin' ' + git config fastimport.unpackLimit 0 && test_tick && cat >input <<-INPUT_END && blob
-- 2.56.GIT