Code

vcs-svn: guard against overflow when computing preimage length
[git.git] / t / t4007-rename-3.sh
index 25e7a836598512878494865c1a3dca801e8b12e3..11502b750997aba0ecfb6aa5b07c9aad1c45d592 100755 (executable)
@@ -35,6 +35,11 @@ test_expect_success 'copy detection' '
        compare_diff_raw current expected
 '
 
+test_expect_success 'copy detection, cached' '
+       git diff-index -C --find-copies-harder --cached $tree >current &&
+       compare_diff_raw current expected
+'
+
 # In the tree, there is only path0/COPYING.  In the cache, path0 and
 # path1 both have COPYING and the latter is a copy of path0/COPYING.
 # However when we say we care only about path1, we should just see