Skip to content

Commit e7ec230

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 v2.36.1 is now the current version and we still have not removed it. Let's do it now. We had to wait for a while because some users were still on Visual Studio 2017 (which used that option until a certain stage). But then, users who upgrade Git will also upgrade Visual Studio, or so one would hope, therefore they should not be affected by this change. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent e2ff68a commit e7ec230

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)