diff options
| author | Jack Nagel | 2015-02-08 19:53:38 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2015-02-08 19:53:38 -0500 | 
| commit | d13f04af1682249ecd8750e90996e6401fa34eb8 (patch) | |
| tree | 0218bfc9a37e34bb9541078b577b17117d3d1680 /Library/Homebrew/download_strategy.rb | |
| parent | a36d2840d38e90524b68f67fb2bf435694ddda22 (diff) | |
| download | homebrew-d13f04af1682249ecd8750e90996e6401fa34eb8.tar.bz2 | |
Quote entire path passed to checkout-index
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 2 | 
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 | 
