summaryrefslogtreecommitdiffstats
path: root/contrib/completion/git-completion.zsh
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2020-10-25 04:13:19 +0100
committerJunio C Hamano <gitster@pobox.com>2020-10-26 23:23:26 +0100
commit44b37abb2aabdb49e9f44161b7eafba3f03e4da5 (patch)
tree081aa083d85f8a8006b8ce9cdbfb006cc7813e21 /contrib/completion/git-completion.zsh
parentcompletion: zsh: reorganize install instructions (diff)
downloadgit-44b37abb2aabdb49e9f44161b7eafba3f03e4da5.tar.xz
git-44b37abb2aabdb49e9f44161b7eafba3f03e4da5.zip
completion: zsh: fix for directories with spaces
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.zsh')
-rw-r--r--contrib/completion/git-completion.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.zsh b/contrib/completion/git-completion.zsh
index 05ccaac194..5d6740c6ff 100644
--- a/contrib/completion/git-completion.zsh
+++ b/contrib/completion/git-completion.zsh
@@ -35,7 +35,7 @@ if [ -z "$script" ]; then
local -a locations
local e
locations=(
- $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
+ "$(dirname ${funcsourcetrace[1]%:*})"/git-completion.bash
'/etc/bash_completion.d/git' # fedora, old debian
'/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian
'/usr/share/bash-completion/git' # gentoo