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>
Felipe Contreras committed
Aug 16, 2021 at 04:10 UTC
f3cc916acc2e0f92c05e07c82c83b370e7d31247
1 file changed
+1
-1
contrib/completion/git-completion.bash
+1
-1
@@ -421,7 +421,7 @@ __gitcomp_builtin ()
421
local incl="${2-}"
422
local excl="${3-}"
423
424
- local var=__gitcomp_builtin_"${cmd/-/_}"
424
+ local var=__gitcomp_builtin_"${cmd//-/_}"
425
local options
426
eval "options=\${$var-}"
427