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:
parent
573895dd60
commit
13d0b278be
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue