X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft1300-repo-config.sh;h=f89d7e9e4959ddccafafd11c5fbf9f4b06541578;hb=1349484e341a3ec2ba02a86c8fbd97ea9dc8c756;hp=83b7294010cd59d5438b6020868c699c01105595;hpb=92396402e2d547f8805dc24db53a4c725796810e;p=git.git diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index 83b729401..f89d7e9e4 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -683,6 +683,34 @@ test_expect_success 'set --bool-or-int' ' rm .git/config +cat >expect <<\EOF +[path] + home = ~/ + normal = /dev/null + trailingtilde = foo~ +EOF + +test_expect_success 'set --path' ' + git config --path path.home "~/" && + git config --path path.normal "/dev/null" && + git config --path path.trailingtilde "foo~" && + test_cmp expect .git/config' + +cat >expect < result && + git config --get --path path.normal >> result && + git config --get --path path.trailingtilde >> result && + test_cmp expect result +' + +rm .git/config + git config quote.leading " test" git config quote.ending "test " git config quote.semicolon "test;test"