Merge branch 'jc/checkout-reflog-fix'
[gitweb.git] / t / t1300-repo-config.sh
index ca5058e0d461b7ab5cc9c3ec908eccf126be32c7..3e140c18f4183c41c76aaab0834f1d23ce7bcd2d 100755 (executable)
@@ -910,4 +910,16 @@ 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_expect_success 'git -c complains about empty key and value' '
+       test_must_fail git -c "" rev-parse
+'
+
 test_done