Code

Merge branch 'maint'
[git.git] / t / t0021-conversion.sh
index ad952c9ce2ce2e1a83145b4949c4885e2bdaf47d..bab9ecc34e0304e855e7f4aa131f89c0300bc3e2 100755 (executable)
@@ -4,8 +4,17 @@ test_description='blob conversion via gitattributes'
 
 . ./test-lib.sh
 
+cat <<\EOF >rot13.sh
+tr '[a-zA-Z]' '[n-za-mN-ZA-M]'
+EOF
+chmod +x rot13.sh
+
 test_expect_success setup '
+       git config filter.rot13.smudge ./rot13.sh &&
+       git config filter.rot13.clean ./rot13.sh &&
+
        {
+           echo "*.t filter=rot13"
            echo "*.i ident"
        } >.gitattributes &&