]> asedeno.scripts.mit.edu Git - git.git/blobdiff - t/t3700-add.sh
t/t7811-grep-open.sh: ensure fake "less" is made executable
[git.git] / t / t3700-add.sh
index 6ae5a2cd9511b83ad1d263c0ec0a374fc4bfc981..525c9a8fdfb4953612e6946994c8e555f676bfd2 100755 (executable)
@@ -223,7 +223,7 @@ test_expect_success POSIXPERM 'git add (add.ignore-errors = false)' '
 '
 rm -f foo2
 
-test_expect_success '--no-ignore-errors overrides config' '
+test_expect_success POSIXPERM '--no-ignore-errors overrides config' '
        git config add.ignore-errors 1 &&
        git reset --hard &&
        date >foo1 &&
@@ -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