@@ -18,6 +18,7 @@ test_expect_success 'status untracked directory with --ignored' '
1818 : >untracked/ignored &&
1919 : >untracked/uncommitted &&
2020 git status --porcelain --ignored >actual &&
21+ test_filter_gitconfig actual &&
2122 test_cmp expected actual
2223'
2324
@@ -27,6 +28,7 @@ test_expect_success 'same with gitignore starting with BOM' '
2728 : >untracked/ignored &&
2829 : >untracked/uncommitted &&
2930 git status --porcelain --ignored >actual &&
31+ test_filter_gitconfig actual &&
3032 test_cmp expected actual
3133'
3234
@@ -40,18 +42,22 @@ test_expect_success 'status untracked files --ignored with pathspec (no match)'
4042test_expect_success ' status untracked files --ignored with pathspec (literal match)' '
4143 git status --porcelain --ignored -- untracked/ignored >actual &&
4244 echo "!! untracked/ignored" >expected &&
45+ test_filter_gitconfig actual &&
4346 test_cmp expected actual &&
4447 git status --porcelain --ignored -- untracked/uncommitted >actual &&
4548 echo "?? untracked/uncommitted" >expected &&
49+ test_filter_gitconfig actual &&
4650 test_cmp expected actual
4751'
4852
4953test_expect_success ' status untracked files --ignored with pathspec (glob match)' '
5054 git status --porcelain --ignored -- untracked/i\* >actual &&
5155 echo "!! untracked/ignored" >expected &&
56+ test_filter_gitconfig actual &&
5257 test_cmp expected actual &&
5358 git status --porcelain --ignored -- untracked/u\* >actual &&
5459 echo "?? untracked/uncommitted" >expected &&
60+ test_filter_gitconfig actual &&
5561 test_cmp expected actual
5662'
5763
6571
6672test_expect_success ' status untracked directory with --ignored -u' '
6773 git status --porcelain --ignored -u >actual &&
74+ test_filter_gitconfig actual &&
6875 test_cmp expected actual
6976'
7077cat > expected << \EOF
@@ -76,9 +83,11 @@ test_expect_success 'status of untracked directory with --ignored works with or
7683 git status --porcelain --ignored >tmp &&
7784 grep untracked/ tmp >actual &&
7885 rm tmp &&
86+ test_filter_gitconfig actual &&
7987 test_cmp expected actual &&
8088
8189 git status --porcelain --ignored untracked/ >actual &&
90+ test_filter_gitconfig actual &&
8291 test_cmp expected actual
8392'
8493
8998
9099test_expect_success ' status prefixed untracked sub-directory with --ignored -u' '
91100 git status --porcelain --ignored -u untracked/ >actual &&
101+ test_filter_gitconfig actual &&
92102 test_cmp expected actual
93103'
94104
@@ -104,6 +114,7 @@ test_expect_success 'status ignored directory with --ignore' '
104114 mkdir ignored &&
105115 : >ignored/uncommitted &&
106116 git status --porcelain --ignored >actual &&
117+ test_filter_gitconfig actual &&
107118 test_cmp expected actual
108119'
109120
116127
117128test_expect_success ' status ignored directory with --ignore -u' '
118129 git status --porcelain --ignored -u >actual &&
130+ test_filter_gitconfig actual &&
119131 test_cmp expected actual
120132'
121133
@@ -130,6 +142,7 @@ test_expect_success 'status empty untracked directory with --ignore' '
130142 mkdir untracked-ignored &&
131143 mkdir untracked-ignored/test &&
132144 git status --porcelain --ignored >actual &&
145+ test_filter_gitconfig actual &&
133146 test_cmp expected actual
134147'
135148
141154
142155test_expect_success ' status empty untracked directory with --ignore -u' '
143156 git status --porcelain --ignored -u >actual &&
157+ test_filter_gitconfig actual &&
144158 test_cmp expected actual
145159'
146160
@@ -155,6 +169,7 @@ test_expect_success 'status untracked directory with ignored files with --ignore
155169 : >untracked-ignored/ignored &&
156170 : >untracked-ignored/test/ignored &&
157171 git status --porcelain --ignored >actual &&
172+ test_filter_gitconfig actual &&
158173 test_cmp expected actual
159174'
160175
168183
169184test_expect_success ' status untracked directory with ignored files with --ignore -u' '
170185 git status --porcelain --ignored -u >actual &&
186+ test_filter_gitconfig actual &&
171187 test_cmp expected actual
172188'
173189
@@ -185,6 +201,7 @@ test_expect_success 'status ignored tracked directory with --ignore' '
185201 git commit -m. &&
186202 echo "tracked" >.gitignore &&
187203 git status --porcelain --ignored >actual &&
204+ test_filter_gitconfig actual &&
188205 test_cmp expected actual
189206'
190207
196213
197214test_expect_success ' status ignored tracked directory with --ignore -u' '
198215 git status --porcelain --ignored -u >actual &&
216+ test_filter_gitconfig actual &&
199217 test_cmp expected actual
200218'
201219
208226test_expect_success ' status ignored tracked directory and ignored file with --ignore' '
209227 echo "committed" >>.gitignore &&
210228 git status --porcelain --ignored >actual &&
229+ test_filter_gitconfig actual &&
211230 test_cmp expected actual
212231'
213232
219238
220239test_expect_success ' status ignored tracked directory and ignored file with --ignore -u' '
221240 git status --porcelain --ignored -u >actual &&
241+ test_filter_gitconfig actual &&
222242 test_cmp expected actual
223243'
224244
@@ -233,6 +253,7 @@ test_expect_success 'status ignored tracked directory and uncommitted file with
233253 echo "tracked" >.gitignore &&
234254 : >tracked/uncommitted &&
235255 git status --porcelain --ignored >actual &&
256+ test_filter_gitconfig actual &&
236257 test_cmp expected actual
237258'
238259
245266
246267test_expect_success ' status ignored tracked directory and uncommitted file with --ignore -u' '
247268 git status --porcelain --ignored -u >actual &&
269+ test_filter_gitconfig actual &&
248270 test_cmp expected actual
249271'
250272
@@ -260,6 +282,7 @@ test_expect_success 'status ignored tracked directory with uncommitted file in u
260282 mkdir tracked/ignored &&
261283 : >tracked/ignored/uncommitted &&
262284 git status --porcelain --ignored >actual &&
285+ test_filter_gitconfig actual &&
263286 test_cmp expected actual
264287'
265288
272295
273296test_expect_success ' status ignored tracked directory with uncommitted file in untracked subdir with --ignore -u' '
274297 git status --porcelain --ignored -u >actual &&
298+ test_filter_gitconfig actual &&
275299 test_cmp expected actual
276300'
277301
@@ -287,6 +311,7 @@ test_expect_success 'status ignored tracked directory with uncommitted file in t
287311 git add -f tracked/ignored/committed &&
288312 git commit -m. &&
289313 git status --porcelain --ignored >actual &&
314+ test_filter_gitconfig actual &&
290315 test_cmp expected actual
291316'
292317
299324
300325test_expect_success ' status ignored tracked directory with uncommitted file in tracked subdir with --ignore -u' '
301326 git status --porcelain --ignored -u >actual &&
327+ test_filter_gitconfig actual &&
302328 test_cmp expected actual
303329'
304330
@@ -310,6 +336,7 @@ test_expect_success 'status ignores submodule in excluded directory' '
310336 git init tracked/submodule &&
311337 test_commit -C tracked/submodule initial &&
312338 git status --porcelain --ignored -u tracked/submodule >actual &&
339+ test_filter_gitconfig actual &&
313340 test_cmp expected actual
314341'
315342
0 commit comments