Fourth batch
[gitweb.git] / t / t2200-add-update.sh
index e16b15d3e5784eb3c6423318142cb91fe3a58601..f764b7e3f53e95e11acd4c2bdaafb737979d45e2 100755 (executable)
@@ -84,11 +84,12 @@ test_expect_success 'non-qualified update in subdir updates from the root' '
        (
                cd dir1 &&
                echo even more >>sub2 &&
+               git --literal-pathspecs add -u &&
+               echo even more >>sub2 &&
                git add -u
        ) &&
-       : >expect &&
        git diff-files --name-only >actual &&
-       test_cmp expect actual
+       test_must_be_empty actual
 '
 
 test_expect_success 'replace a file with a symlink' '