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>

Felipe Contreras committed Oct 24, 2020 at 22:13 UTC 44b37abb2aabdb49e9f44161b7eafba3f03e4da5
1 file changed +1 -1
contrib/completion/git-completion.zsh
+1 -1
@@ -35,7 +35,7 @@ if [ -z "$script" ]; then
35 local -a locations
36 local e
37 locations=(
38 - $(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
38 + "$(dirname ${funcsourcetrace[1]%:*})"/git-completion.bash
39 '/etc/bash_completion.d/git' # fedora, old debian
40 '/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian
41 '/usr/share/bash-completion/git' # gentoo