Skip to content
Snippets Groups Projects
Commit 72ef9f4a authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

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

parent fa06ea6e
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment