Skip to content

Commit f3cc916

Browse files
felipecgitster
authored andcommitted
completion: bash: fix for multiple dash commands
Otherwise options of commands like 'for-each-ref' are not completed. Tested-by: David Aguilar <[email protected]> Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent e9f2118 commit f3cc916

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ __gitcomp_builtin ()
421421
local incl="${2-}"
422422
local excl="${3-}"
423423

424-
local var=__gitcomp_builtin_"${cmd/-/_}"
424+
local var=__gitcomp_builtin_"${cmd//-/_}"
425425
local options
426426
eval "options=\${$var-}"
427427

0 commit comments

Comments
 (0)