X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft2200-add-update.sh;h=2ad2819a345af53ff6ab0b7c28fa313f1a0a5956;hb=f737632938868adaa0e8f777235e8e15d40ab14c;hp=5a8d52f2ff5ecfea8a1d4f9d39a2ed4a08c822e0;hpb=17e46ea6fea5273b51b424a8016f9da3412792d4;p=git.git diff --git a/t/t2200-add-update.sh b/t/t2200-add-update.sh index 5a8d52f2f..2ad2819a3 100755 --- a/t/t2200-add-update.sh +++ b/t/t2200-add-update.sh @@ -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