Code

config: die on error in command-line config
[git.git] / t / t1300-repo-config.sh
index ca5058e0d461b7ab5cc9c3ec908eccf126be32c7..584e956ac5c807a834b8be5fb44e4543cf8172f8 100755 (executable)
@@ -910,4 +910,12 @@ test_expect_success 'git -c does not split values on equals' '
        test_cmp expect actual
 '
 
+test_expect_success 'git -c dies on bogus config' '
+       test_must_fail git -c core.bare=foo rev-parse
+'
+
+test_expect_success 'git -c complains about empty key' '
+       test_must_fail git -c "=foo" rev-parse
+'
+
 test_done