diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2021-08-16 12:10:24 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-18 21:17:25 +0300 |
commit | f3cc916acc2e0f92c05e07c82c83b370e7d31247 (patch) | |
tree | c6ed93b38cc6123a18abe927527eecc11682c93f /contrib | |
parent | e9f2118ddfad4ae5e37adc7637acc9daf4ac8c9c (diff) |
completion: bash: fix for multiple dash commands
Otherwise options of commands like 'for-each-ref' are not completed.
Tested-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/completion/git-completion.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 05606609f9..1feb2ee108 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -421,7 +421,7 @@ __gitcomp_builtin () local incl="${2-}" local excl="${3-}" - local var=__gitcomp_builtin_"${cmd/-/_}" + local var=__gitcomp_builtin_"${cmd//-/_}" local options eval "options=\${$var-}" |