mv: allow renaming to fix case on case insensitive filesystems
[gitweb.git] / t / t4056-diff-order.sh
index ae8036b73a58db3a16545b775904a97faa7677ae..9e2b29ede508e3d0822f5eb607db2ae4896611e6 100755 (executable)
@@ -68,10 +68,6 @@ test_expect_success POSIXPERM,SANITY 'unreadable orderfile' '
        test_must_fail git diff -Ounreadable_file --name-only HEAD^..HEAD
 '
 
-test_expect_success 'orderfile is a directory' '
-       test_must_fail git diff -O/ --name-only HEAD^..HEAD
-'
-
 for i in 1 2
 do
        test_expect_success "orderfile using option ($i)" '
@@ -89,6 +85,16 @@ do
                wait &&
                test_cmp expect_$i actual
        '
+
+       test_expect_success "orderfile using config ($i)" '
+               git -c diff.orderfile=order_file_$i diff --name-only HEAD^..HEAD >actual &&
+               test_cmp expect_$i actual
+       '
+
+       test_expect_success "cancelling configured orderfile ($i)" '
+               git -c diff.orderfile=order_file_$i diff -O/dev/null --name-only HEAD^..HEAD >actual &&
+               test_cmp expect_none actual
+       '
 done
 
 test_done