t5620: make test work with path-walk var
The GIT_TEST_PACK_PATH_WALK test variable allows enabling the --path-walk option to 'git pack-objects' by default. This sometimes engages the warning that --path-walk is incompatible with the --filter option. These tests in t5620 fail due to this warning over stderr in this case. Disable this variable for this moment until these options work together. Signed-off-by: Derrick Stolee <stolee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Derrick Stolee committed
May 22, 2026 at 18:24 UTC
b00c374d471ae74e6158388fbf485b3a989729bd
1 file changed
+9
t/t5620-backfill.sh
+9
@@ -298,6 +298,9 @@ test_expect_success 'backfill with prefix pathspec' '
298
git -C backfill-path rev-list --quiet --objects --missing=print HEAD >missing &&
299
test_line_count = 48 missing &&
300
301
+ # If we enable --path-walk here, we will get a warning overs stderr
302
+ # due to incompatibilities with --filter.
303
+ GIT_TEST_PACK_PATH_WALK=0 \
304
git -C backfill-path backfill HEAD -- d/f 2>err &&
305
test_must_be_empty err &&
306
@@ -315,6 +318,9 @@ test_expect_success 'backfill with multiple pathspecs' '
318
git -C backfill-path rev-list --quiet --objects --missing=print HEAD >missing &&
319
test_line_count = 48 missing &&
320
321
+ # If we enable --path-walk here, we will get a warning overs stderr
322
+ # due to incompatibilities with --filter.
323
+ GIT_TEST_PACK_PATH_WALK=0 \
324
git -C backfill-path backfill HEAD -- d/f a 2>err &&
325
test_must_be_empty err &&
326
@@ -332,6 +338,9 @@ test_expect_success 'backfill with wildcard pathspec' '
338
git -C backfill-path rev-list --quiet --objects --missing=print HEAD >missing &&
339
test_line_count = 48 missing &&
340
341
+ # If we enable --path-walk here, we will get a warning overs stderr
342
+ # due to incompatibilities with --filter.
343
+ GIT_TEST_PACK_PATH_WALK=0 \
344
git -C backfill-path backfill HEAD -- "d/file.*.txt" 2>err &&
345
test_must_be_empty err &&
346