config variable names are technically case-insensitive while this case
construct is by default case-sensitive. Moving it to case-insensitive
could be a lot more work. Instead let's just accept the form that is
more likely to show up in practice.
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
---
contrib/completion/git-completion.bash | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 8d3257c4de..e7829b5b24 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -2084,7 +2084,7 @@ __git_compute_config_vars ()
_git_config ()
{
case "$prev" in
- branch.*.remote|branch.*.pushremote)
+ branch.*.remote|branch.*.push[Rr]emote)
__gitcomp_nl "$(__git_remotes)"
return
;;@@ -2096,7 +2096,7 @@ _git_config ()
__gitcomp "false true preserve interactive"
return
;;
- remote.pushdefault)
+ remote.push[Dd]efault)
__gitcomp_nl "$(__git_remotes)"
return
;;
@@ -2162,7 +2162,7 @@ _git_config ()
__gitcomp "$__git_send_email_suppresscc_options"
return
;;
- sendemail.transferencoding)
+ sendemail.transfer[Ee]ncoding)
__gitcomp "7bit 8bit quoted-printable base64"
return
;;
--
2.17.0.705.g3525833791