Skip to content

Commit 59b33e2

Browse files
committed
fixup! status: verify that --show-ignored-directory prints a warning
We said we would remove --show-ignored-directory in v2.16.0 or v2.17.0, but it is almost time for v2.21.0 already and we still have not removed it. Let's do it now. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e2ff68a commit 59b33e2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

t/t7522-status-show-ignored-directory.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ test_expect_success 'setup initial commit and ignore file' '
2121
'
2222

2323
cat >expect <<\EOF
24-
? err
2524
? expect
2625
? output
2726
! dir/ignored/ignored_1.ign
@@ -39,9 +38,8 @@ test_expect_success 'setup folder with ignored files' '
3938

4039
test_expect_success 'Verify behavior of status on folders with ignored files' '
4140
test_when_finished "git clean -fdx" &&
42-
git status --porcelain=v2 --ignored --untracked-files=all --show-ignored-directory >output 2>err &&
43-
test_cmp expect output &&
44-
grep "deprecated.*use --ignored=matching instead" err
41+
git status --porcelain=v2 --ignored --untracked-files=all --show-ignored-directory >output &&
42+
test_cmp expect output
4543
'
4644

4745
# Test status bahavior on folder with tracked and ignored files

0 commit comments

Comments
 (0)