checkout: avoid unnecessary match_pathspec calls
[gitweb.git] / t / t4111-apply-subdir.sh
index d6271ae34bc67c206d5d2f276696d140a4f17d9b..7c398432bad761c1b38c6d15548bed0c389221fd 100755 (executable)
@@ -89,7 +89,7 @@ test_expect_success 'apply --index from subdir of toplevel' '
 test_expect_success 'apply from .git dir' '
        cp postimage expected &&
        cp preimage .git/file &&
-       cp preimage .git/objects/file
+       cp preimage .git/objects/file &&
        (
                cd .git &&
                git apply "$patch"
@@ -97,10 +97,10 @@ test_expect_success 'apply from .git dir' '
        test_cmp expected .git/file
 '
 
-test_expect_failure 'apply from subdir of .git dir' '
+test_expect_success 'apply from subdir of .git dir' '
        cp postimage expected &&
        cp preimage .git/file &&
-       cp preimage .git/objects/file
+       cp preimage .git/objects/file &&
        (
                cd .git/objects &&
                git apply "$patch"