Code

Documentation: update [section.subsection] to reflect what git does
[git.git] / t / t2200-add-update.sh
index 5a8d52f2ff5ecfea8a1d4f9d39a2ed4a08c822e0..2ad2819a345af53ff6ab0b7c28fa313f1a0a5956 100755 (executable)
@@ -80,7 +80,7 @@ test_expect_success 'change gets noticed' '
 
 '
 
-test_expect_success 'replace a file with a symlink' '
+test_expect_success SYMLINKS 'replace a file with a symlink' '
 
        rm foo &&
        ln -s top foo &&
@@ -176,4 +176,9 @@ test_expect_success 'add -u resolves unmerged paths' '
 
 '
 
+test_expect_success '"add -u non-existent" should fail' '
+       test_must_fail git add -u non-existent &&
+       ! (git ls-files | grep "non-existent")
+'
+
 test_done