aboutsummaryrefslogtreecommitdiff
path: root/t/t1300-repo-config.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-07-20 16:29:59 -0700
committerJunio C Hamano <gitster@pobox.com>2017-07-20 16:29:59 -0700
commit099b74b4b267f72dfab916f28a0b17fceb293900 (patch)
treea11eb911392ccd33fa352b87f6e22eacabd9149f /t/t1300-repo-config.sh
parentb7ef54f273bb9d7e49cb5f6b4cd1d7f552434fe1 (diff)
parent643df7e234dda47a4748311361a82df5415b7bc1 (diff)
downloadgit-099b74b4b267f72dfab916f28a0b17fceb293900.tar.gz
git-099b74b4b267f72dfab916f28a0b17fceb293900.tar.xz
Merge branch 'js/alias-case-sensitivity'
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
Diffstat (limited to 't/t1300-repo-config.sh')
-rwxr-xr-xt/t1300-repo-config.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/t1300-repo-config.sh b/t/t1300-repo-config.sh
index a37ef0422..364a53700 100755
--- a/t/t1300-repo-config.sh
+++ b/t/t1300-repo-config.sh
@@ -1075,6 +1075,13 @@ test_expect_success 'git -c works with aliases of builtins' '
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 &&