aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-02-08 19:53:38 -0500
committerJack Nagel2015-02-08 19:53:38 -0500
commit60452a526f7575be369a0110c9d2b0b08c7f0d5a (patch)
treeebcf5aaf1b350a8bf399616a9bde1429725863a8 /Library
parent5c758f7852d2305c3c74ffbb7aae83b22c0fefa6 (diff)
downloadbrew-60452a526f7575be369a0110c9d2b0b08c7f0d5a.tar.bz2
Quote entire path passed to checkout-index
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 9b3759413..afd8840c5 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -652,7 +652,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
def checkout_submodules(dst)
escaped_clone_path = cached_location.to_s.gsub(/\//, '\/')
- sub_cmd = "git checkout-index -a -f --prefix=#{dst}/${toplevel/#{escaped_clone_path}/}/$path/"
+ sub_cmd = %[git checkout-index -a -f --prefix="#{dst}/${toplevel/#{escaped_clone_path}/}/$path/"]
quiet_safe_system "git", "submodule", "foreach", "--recursive", sub_cmd
end
end