]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t4007-rename-3.sh
The seventh batch
[thirdparty/git.git] / t / t4007-rename-3.sh
index cbb9c62f535e807d13d72008088b108101c6ec57..b86165cbac5970fda7b169f80edea8deea5ccf12 100755 (executable)
@@ -6,18 +6,19 @@
 test_description='Rename interaction with pathspec.
 
 '
+
+TEST_PASSES_SANITIZE_LEAK=true
 . ./test-lib.sh
 . "$TEST_DIRECTORY"/lib-diff.sh ;# test-lib chdir's into trash
 
 test_expect_success 'prepare reference tree' '
        mkdir path0 path1 &&
-       cp "$TEST_DIRECTORY"/lib-diff/COPYING path0/COPYING &&
+       COPYING_test_data >path0/COPYING &&
        git update-index --add path0/COPYING &&
        tree=$(git write-tree) &&
-       echo $tree
+       blob=$(git rev-parse :path0/COPYING)
 '
 
-blob=$(git hash-object "$TEST_DIRECTORY/lib-diff/COPYING")
 test_expect_success 'prepare work tree' '
        cp path0/COPYING path1/COPYING &&
        git update-index --add --remove path0/COPYING path1/COPYING