Skip to content

Commit 44b37ab

Browse files
felipecgitster
authored andcommitted
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>
1 parent cb9dcbd commit 44b37ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/completion/git-completion.zsh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ if [ -z "$script" ]; then
3535
local -a locations
3636
local e
3737
locations=(
38-
$(dirname ${funcsourcetrace[1]%:*})/git-completion.bash
38+
"$(dirname ${funcsourcetrace[1]%:*})"/git-completion.bash
3939
'/etc/bash_completion.d/git' # fedora, old debian
4040
'/usr/share/bash-completion/completions/git' # arch, ubuntu, new debian
4141
'/usr/share/bash-completion/git' # gentoo

0 commit comments

Comments
 (0)