[PATCH v2 01/20] t9300: move 'fastimport.unpackLimit' to the required test
- From
Karthik Nayak <karthik.188@gmail.com>
- Date
- Nov 12, 2026, 17:34 UTC
- Message-ID
- <20261112-kn-fast-import-tests-1-v2-1-b8c3a0ab27e8@gmail.com>
- In-Reply-To
- <20261112-kn-fast-import-tests-1-v2-0-b8c3a0ab27e8@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 15f511fb6b..4cffe43a71 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