1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 04:30:24 +02:00

39514: pass on --git-dir when calling git to get completion matches

This commit is contained in:
Oliver Kiddle 2016-09-30 09:57:50 +02:00
parent 573895dd60
commit 13d0b278be
2 changed files with 3 additions and 1 deletions

View file

@ -7484,7 +7484,7 @@ _git() {
;;
(option-or-argument)
curcontext=${curcontext%:*:*}:git-$words[1]:
(( $+opt_args[--git-dir] )) && local -x GIT_DIR=$opt_args[--git-dir]
if ! _call_function ret _git-$words[1]; then
if zstyle -T :completion:$curcontext: use-fallback; then
_default && ret=0