summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2015-09-03 19:17:52 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-09-03 19:17:52 -0700
commitfa6d3749edce0a5ba8c9150f984cc307e0092d0d (patch)
tree3ca97911ade88435507d1151fb5885087ccf7f55 /t
parentMerge branch 'nd/dwim-wildcards-as-pathspecs' into maint (diff)
parentconfig: silence warnings for command names with invalid keys (diff)
downloadtgif-fa6d3749edce0a5ba8c9150f984cc307e0092d0d.tar.xz
Merge branch 'jk/fix-alias-pager-config-key-warnings' into maint
Because the configuration system does not allow "alias.0foo" and "pager.0foo" as the configuration key, the user cannot use '0foo' as a custom command name anyway, but "git 0foo" tried to look these keys up and emitted useless warnings before saying '0foo is not a git command'. These warning messages have been squelched. * jk/fix-alias-pager-config-key-warnings: config: silence warnings for command names with invalid keys
Diffstat (limited to 't')
-rwxr-xr-xt/t7006-pager.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t7006-pager.sh b/t/t7006-pager.sh
index 947b690fd7..6ea7ac4c41 100755
--- a/t/t7006-pager.sh
+++ b/t/t7006-pager.sh
@@ -447,4 +447,13 @@ test_expect_success TTY 'external command pagers override sub-commands' '
test_cmp expect actual
'
+test_expect_success 'command with underscores does not complain' '
+ write_script git-under_score <<-\EOF &&
+ echo ok
+ EOF
+ git --exec-path=. under_score >actual 2>&1 &&
+ echo ok >expect &&
+ test_cmp expect actual
+'
+
test_done