t4111 (apply): refresh index before applying patches to it
[gitweb.git] / t / t4111-apply-subdir.sh
index 60c223750f64dc9c1148eea9dc4bad19dec5f3da..d6271ae34bc67c206d5d2f276696d140a4f17d9b 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
        }
 '