Quote prefix for git submodules. Fixes Homebrew/homebrew#1009

This commit is contained in:
Adam Vandenberg 2010-04-08 13:25:55 -07:00
parent fa06ea6e17
commit 72ef9f4aaa

View File

@ -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