diff options
author | Junio C Hamano <gitster@pobox.com> | 2015-08-31 15:38:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-08-31 15:38:57 -0700 |
commit | 7b7c10bf5e38ca8fe06ab80b073408e1dc6761d7 (patch) | |
tree | 71f3cdad993d78ee6edb6301ef72a73a3782653b /t/t7006-pager.sh | |
parent | 0bb71fb36d60902a2efffd7e6df1cc821884e67c (diff) | |
parent | 9e9de18f1ad39901a8f0c67f0af70d66d427e326 (diff) | |
download | git-7b7c10bf5e38ca8fe06ab80b073408e1dc6761d7.tar.gz |
Merge branch 'jk/fix-alias-pager-config-key-warnings'
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/t7006-pager.sh')
-rwxr-xr-x | t/t7006-pager.sh | 9 |
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 |