aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-04-08 13:25:55 -0700
committerAdam Vandenberg2010-04-08 21:01:09 -0700
commit72ef9f4aaa8c86aa422cb735eeba7f809e53a84c (patch)
tree649954ed3339f4f1d95f6e0328da4b625d62a47c /Library
parentfa06ea6e17d09a10148a076fe59495223f932329 (diff)
downloadbrew-72ef9f4aaa8c86aa422cb735eeba7f809e53a84c.tar.bz2
Quote prefix for git submodules. Fixes Homebrew/homebrew#1009
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 5f1a1a2d3..ac323d55b 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -176,7 +176,7 @@ class GitDownloadStrategy <AbstractDownloadStrategy
if File.exist?('.gitmodules')
safe_system 'git', 'submodule', 'init'
safe_system 'git', 'submodule', 'update'
- sub_cmd = "git checkout-index -a -f --prefix=#{dst}/$path/"
+ sub_cmd = "git checkout-index -a -f \"--prefix=#{dst}/$path/\""
safe_system 'git', 'submodule', '--quiet', 'foreach', '--recursive', sub_cmd
end
end