X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=t%2Ft1300-repo-config.sh;h=64f05080b65c2b9506d1e34748b47ee721026aef;hb=2d4fef9b86f41ad929f533e0e52dc1a6048cc2a3;hp=f11f98c3ce7e35f61d06542ce707d61b98079fda;hpb=919451330b55366ac207e575c1982bc8fa5220ed;p=git.git diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index f11f98c3c..64f05080b 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -824,4 +824,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