From 13d0b278be9f9f10655a53a88b863351d85b523d Mon Sep 17 00:00:00 2001 From: Oliver Kiddle Date: Fri, 30 Sep 2016 09:57:50 +0200 Subject: 39514: pass on --git-dir when calling git to get completion matches --- Completion/Unix/Command/_git | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Command/_git') 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 -- cgit v1.2.3