Emily Xie <emilyxxie@xxxxxxxxx> writes: > diff --git a/t/t3700-add.sh b/t/t3700-add.sh > index f3a4b4a..40a0d2b 100755 > --- a/t/t3700-add.sh > +++ b/t/t3700-add.sh > @@ -331,9 +331,8 @@ test_expect_success 'git add --dry-run --ignore-missing of non-existing file out > test_i18ncmp expect.err actual.err > ' > > -test_expect_success 'git add empty string should invoke warning' ' > - git add "" 2>output && > - test_i18ngrep "warning: empty strings" output > +test_expect_success 'git add empty string should fail' ' > + test_must_fail git add "" > ' Doesn't this affect the tests that follow this step? We used to warn but went ahead and added all of them anyway, but now we fail without adding anything, which means that the state of the index before and after this patch would be different. > test_expect_success 'git add --chmod=[+-]x stages correctly' '