summaryrefslogtreecommitdiff
path: root/t/t1300-repo-config.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-07-21 15:03:38 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-07-21 15:03:38 -0700
commitbdea5bae226f92727be0e9fc4603099030e6496d (patch)
tree8e04ba392f22b9442d70690f405e2c4f6781a7b7 /t/t1300-repo-config.sh
parentMerge branch 'bb/unicode-10.0' into maint (diff)
parentalias: compare alias name *case-insensitively* (diff)
downloadtgif-bdea5bae226f92727be0e9fc4603099030e6496d.tar.xz
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
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 a37ef04222..364a537000 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 &&