diff options
author | Oliver Kiddle <opk@zsh.org> | 2016-09-30 09:57:50 +0200 |
---|---|---|
committer | Oliver Kiddle <opk@zsh.org> | 2016-09-30 09:57:50 +0200 |
commit | 13d0b278be9f9f10655a53a88b863351d85b523d (patch) | |
tree | 11dbc8c982687e8de77599c5c7434b21eef2efa8 /Completion/Unix/Command | |
parent | 573895dd60974354cdabd0632bd0367d04e7ddbc (diff) | |
download | zsh-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')
-rw-r--r-- | Completion/Unix/Command/_git | 2 |
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 |