浏览代码

Adding quotes to git completion discovery path

Previously, spaces in the path would result in wto separate errouneous
paths being parsed. This fixes that issue.
Michael Okner 9 年之前
父节点
当前提交
3d670c0bfc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/gitfast/_git

+ 1 - 1
plugins/gitfast/_git

@@ -30,7 +30,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