Merge git://git.bogomips.org/git-svn
[gitweb.git] / t / t4022-diff-rewrite.sh
index 6de4acbd44589fbcf6a3f9c4ca2043c9f4e99ebe..2a537a21e8e6793e6ffa2fe1522e30f877b209fe 100755 (executable)
@@ -6,9 +6,12 @@ test_description='rewrite diff'
 
 test_expect_success setup '
 
-       cat ../../COPYING >test &&
+       cat "$TEST_DIRECTORY"/../COPYING >test &&
        git add test &&
-       tr 'a-zA-Z' 'n-za-mN-ZA-M' <../../COPYING >test
+       tr \
+         "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" \
+         "nopqrstuvwxyzabcdefghijklmNOPQRSTUVWXYZABCDEFGHIJKLM" \
+         <"$TEST_DIRECTORY"/../COPYING >test
 
 '