Skip to content

Commit 7370445

Browse files
felipecgitster
authored andcommitted
completion: regression fix for zsh
zsh completion wrapper doesn't reimplement __gitcompadd(). Although it should be trivial to do that, let's use __gitcomp_nl() which achieves exactly the same thing, specially since the suffix ($4) has to be empty. Signed-off-by: Felipe Contreras <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9134a46 commit 7370445

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
@@ -1831,7 +1831,7 @@ _git_config ()
18311831
local remote="${prev#remote.}"
18321832
remote="${remote%.fetch}"
18331833
if [ -z "$cur" ]; then
1834-
__gitcompadd "refs/heads/" "" "" ""
1834+
__gitcomp_nl "refs/heads/" "" "" ""
18351835
return
18361836
fi
18371837
__gitcomp_nl "$(__git_refs_remotes "$remote")"

0 commit comments

Comments
 (0)