]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t1308-config-set.sh
config.mak.uname: set FREAD_READS_DIRECTORIES for Linux and FreeBSD
[thirdparty/git.git] / t / t1308-config-set.sh
index ff50960ccaed9953c5738c9bbf602bf0d326e15a..72d5f1f931bcb4bb99596759e1eeac72da3b07c7 100755 (executable)
@@ -183,6 +183,14 @@ test_expect_success 'proper error on non-existent files' '
        test_cmp expect actual
 '
 
+test_expect_success 'proper error on directory "files"' '
+       echo "Error (-1) reading configuration file a-directory." >expect &&
+       mkdir a-directory &&
+       test_expect_code 2 test-config configset_get_value foo.bar a-directory 2>output &&
+       grep "^Error" output >actual &&
+       test_cmp expect actual
+'
+
 test_expect_success POSIXPERM,SANITY 'proper error on non-accessible files' '
        chmod -r .git/config &&
        test_when_finished "chmod +r .git/config" &&