about summary refs log tree commit diff
path: root/Completion/Unix/Command/_git
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-09-30 09:57:50 +0200
committerOliver Kiddle <opk@zsh.org>2016-09-30 09:57:50 +0200
commit13d0b278be9f9f10655a53a88b863351d85b523d (patch)
tree11dbc8c982687e8de77599c5c7434b21eef2efa8 /Completion/Unix/Command/_git
parent573895dd60974354cdabd0632bd0367d04e7ddbc (diff)
downloadzsh-13d0b278be9f9f10655a53a88b863351d85b523d.tar.gz
zsh-13d0b278be9f9f10655a53a88b863351d85b523d.tar.xz
zsh-13d0b278be9f9f10655a53a88b863351d85b523d.zip
39514: pass on --git-dir when calling git to get completion matches
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r--Completion/Unix/Command/_git2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index a00e1d7ac..80b2c55af 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -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