Merge branch 'jl/submodule-ignore-diff'
[gitweb.git] / t / t1300-repo-config.sh
index 7ddab5fb76697442808e2818ec3bc5c635731830..074f2f2e3e57f76b01f16502998e95b493676711 100755 (executable)
@@ -846,4 +846,12 @@ test_expect_success 'check split_cmdline return' "
        test_must_fail git merge master
        "
 
+test_expect_success 'git -c "key=value" support' '
+       test "z$(git -c name=value config name)" = zvalue &&
+       test "z$(git -c core.name=value config core.name)" = zvalue &&
+       test "z$(git -c CamelCase=value config camelcase)" = zvalue &&
+       test "z$(git -c flag config --bool flag)" = ztrue &&
+       test_must_fail git -c core.name=value config name
+'
+
 test_done