X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=t%2Ft1300-repo-config.sh;h=f11f98c3ce7e35f61d06542ce707d61b98079fda;hb=c2b456b8956c2091318edaee362119e0e96b86b7;hp=9e74b1f1415822c758ccc81bd4f12dc15a16eaee;hpb=57ffc0e775b2a77f2e88cf1cfb6c0c259706fbea;p=git.git diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh index 9e74b1f14..f11f98c3c 100755 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@ -694,6 +694,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"