From: Junio C Hamano Date: Fri, 21 Jul 2017 22:03:38 +0000 (-0700) Subject: Merge branch 'js/alias-case-sensitivity' into maint X-Git-Tag: v2.14.0-rc1~2^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/bdea5bae226f92727be0e9fc4603099030e6496d?ds=inline;hp=-c Merge branch 'js/alias-case-sensitivity' into maint A recent update broke an alias that contained an uppercase letter. * js/alias-case-sensitivity: alias: compare alias name *case-insensitively* t1300: demonstrate that CamelCased aliases regressed --- bdea5bae226f92727be0e9fc4603099030e6496d diff --combined t/t1300-repo-config.sh index a37ef04222,23312bee28..364a537000 --- a/t/t1300-repo-config.sh +++ b/t/t1300-repo-config.sh @@@ -1075,6 -1075,13 +1075,13 @@@ test_expect_success 'git -c works with test_cmp expect actual ' + test_expect_success 'aliases can be CamelCased' ' + test_config alias.CamelCased "rev-parse HEAD" && + git CamelCased >out && + git rev-parse HEAD >expect && + test_cmp expect out + ' + test_expect_success 'git -c does not split values on equals' ' echo "value with = in it" >expect && git -c core.foo="value with = in it" config core.foo >actual && @@@ -1545,10 -1552,4 +1552,10 @@@ test_expect_success !MINGW '--show-orig test_cmp expect output ' +test_expect_success '--local requires a repo' ' + # we expect 128 to ensure that we do not simply + # fail to find anything and return code "1" + test_expect_code 128 nongit git config --local foo.bar +' + test_done