From 8b1fa778676ae94f7a6d4113fa90947b548154dd Mon Sep 17 00:00:00 2001 From: Alex Riesen Date: Fri, 26 Mar 2010 23:53:57 +0100 Subject: Allow passing of configuration parameters in the command line The values passed this way will override whatever is defined in the config files. Signed-off-by: Alex Riesen Signed-off-by: Junio C Hamano --- t/t1300-repo-config.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 't') diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index f11f98c3ce..64f05080b6 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 -- cgit v1.2.3