git-svn: support for git-svn propset
[gitweb.git] / t / t4030-diff-textconv.sh
index 3950fc985875f6f248c90ccc73344f8b7a5bd32a..aad6c7f78db34703b2f9b1ed72239cd3b4005016 100755 (executable)
@@ -96,14 +96,14 @@ test_expect_success 'show blob produces binary' '
        test_cmp expect actual
 '
 
-test_expect_failure 'show --textconv blob produces text' '
+test_expect_success 'show --textconv blob produces text' '
        git show --textconv HEAD:file >actual &&
        printf "0\\n1\\n" >expect &&
        test_cmp expect actual
 '
 
-test_success 'show --no-textconv blob produces binary' '
-       git show --textconv HEAD:file >actual &&
+test_expect_success 'show --no-textconv blob produces binary' '
+       git show --no-textconv HEAD:file >actual &&
        printf "\\0\\n\\01\\n" >expect &&
        test_cmp expect actual
 '
@@ -163,12 +163,10 @@ index 0000000..67be421
 +frotz
 \ No newline at end of file
 EOF
-# make a symlink the hard way that works on symlink-challenged file systems
+
 test_expect_success 'textconv does not act on symlinks' '
-       printf frotz > file &&
-       git add file &&
-       git ls-files -s | sed -e s/100644/120000/ |
-               git update-index --index-info &&
+       rm -f file &&
+       test_ln_s_add frotz file &&
        git commit -m typechange &&
        git show >diff &&
        find_diff <diff >actual &&