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 <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Felipe Contreras committed
May 20, 2013 at 19:33 UTC
737044517f403c1080886a674845fad9c42d6bc0
1 file changed
+1
-1
contrib/completion/git-completion.bash
+1
-1
@@ -1831,7 +1831,7 @@ _git_config ()
1831
local remote="${prev#remote.}"
1832
remote="${remote%.fetch}"
1833
if [ -z "$cur" ]; then
1834
- __gitcompadd "refs/heads/" "" "" ""
1834
+ __gitcomp_nl "refs/heads/" "" "" ""
1835
return
1836
fi
1837
__gitcomp_nl "$(__git_refs_remotes "$remote")"