@@ -2233,7 +2233,7 @@ test_expect_success 'git --help completion' '
'
test_expect_success 'completion.commands removes multiple commands' '
- test_config completion.commands "-cherry -mergetool" &&
+ test_config_global completion.commands "-cherry -mergetool" &&
git --list-cmds=list-mainporcelain,list-complete,config >out &&
! grep -E "^(cherry|mergetool)$" out
'
@@ -2430,7 +2430,7 @@ test_expect_success "recursive alias" '
'
test_expect_success "completion uses <cmd> completion for alias: !sh -c 'git <cmd> ...'" '
- test_config alias.co "!sh -c '"'"'git checkout ...'"'"'" &&
+ test_config_global alias.co "!sh -c '"'"'git checkout ...'"'"'" &&
test_completion "git co m" <<-\EOF
main Z
mybranch Z
@@ -2439,7 +2439,7 @@ test_expect_success "completion uses <cmd> completion for alias: !sh -c 'git <cm
'
test_expect_success 'completion uses <cmd> completion for alias: !f () { VAR=val git <cmd> ... }' '
- test_config alias.co "!f () { VAR=val git checkout ... ; } f" &&
+ test_config_global alias.co "!f () { VAR=val git checkout ... ; } f" &&
test_completion "git co m" <<-\EOF
main Z
mybranch Z
@@ -2448,7 +2448,7 @@ test_expect_success 'completion uses <cmd> completion for alias: !f () { VAR=val
'
test_expect_success 'completion used <cmd> completion for alias: !f() { : git <cmd> ; ... }' '
- test_config alias.co "!f() { : git checkout ; if ... } f" &&
+ test_config_global alias.co "!f() { : git checkout ; if ... } f" &&
test_completion "git co m" <<-\EOF
main Z
mybranch Z
@@ -1008,7 +1008,7 @@ test_expect_success "recursive alias" '
'
test_expect_success "completion uses <cmd> completion for alias: !sh -c 'git <cmd> ...'" '
- test_config alias.co "!sh -c '"'"'git checkout ...'"'"'" &&
+ test_config_global alias.co "!sh -c '"'"'git checkout ...'"'"'" &&
test_completion "git co m" <<-\EOF
main Z
mybranch Z
@@ -1017,7 +1017,7 @@ test_expect_success "completion uses <cmd> completion for alias: !sh -c 'git <cm
'
test_expect_success 'completion uses <cmd> completion for alias: !f () { VAR=val git <cmd> ... }' '
- test_config alias.co "!f () { VAR=val git checkout ... ; } f" &&
+ test_config_global alias.co "!f () { VAR=val git checkout ... ; } f" &&
test_completion "git co m" <<-\EOF
main Z
mybranch Z
@@ -1026,7 +1026,7 @@ test_expect_success 'completion uses <cmd> completion for alias: !f () { VAR=val
'
test_expect_success 'completion used <cmd> completion for alias: !f() { : git <cmd> ; ... }' '
- test_config alias.co "!f() { : git checkout ; if ... } f" &&
+ test_config_global alias.co "!f() { : git checkout ; if ... } f" &&
test_completion "git co m" <<-\EOF
main Z
mybranch Z
Aliases are supposed to be global. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> --- t/t9902-completion.sh | 8 ++++---- t/t9904-completion-zsh.sh | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-)