t3419-*.sh: Fix arithmetic expansion syntax error
[gitweb.git] / t / t4111-apply-subdir.sh
index 60c223750f64dc9c1148eea9dc4bad19dec5f3da..a52d94ae21afe8faaea31721234a912b090e2e08 100755 (executable)
@@ -36,7 +36,8 @@ test_expect_success 'setup: subdir' '
                cp "$2" file &&
                cp "$2" sub/dir/file &&
                cp "$2" sub/dir/b/file &&
-               cp "$2" objects/file
+               cp "$2" objects/file &&
+               test_might_fail git update-index --refresh -q
        }
 '
 
@@ -96,7 +97,7 @@ 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