X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft3700-add.sh;h=525c9a8fdfb4953612e6946994c8e555f676bfd2;hb=c00cf45fa35d8aaa31c479ae7502286837fc4dc6;hp=85eb0fbf96a65ad958422da02ca4975fe687da95;hpb=cb16bcc36965f28845e4fae15c36280a2506f1be;p=git.git diff --git a/t/t3700-add.sh b/t/t3700-add.sh index 85eb0fbf9..525c9a8fd 100755 --- a/t/t3700-add.sh +++ b/t/t3700-add.sh @@ -255,4 +255,9 @@ test_expect_success 'git add to resolve conflicts on otherwise ignored path' ' git add track-this ' +test_expect_success '"add non-existent" should fail' ' + test_must_fail git add non-existent && + ! (git ls-files | grep "non-existent") +' + test_done