diff options
| author | Josh Tilles | 2014-02-20 17:12:34 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2014-02-21 00:05:42 -0500 | 
| commit | 2225ebc44ec48b16035a9f1bfe55ba7a928d03cb (patch) | |
| tree | 10302cf29e91702f853bb6de603153354e122fd7 /Library/Homebrew/download_strategy.rb | |
| parent | ccb216c9c7408fd3019b9476d7e420f8d75693a8 (diff) | |
| download | brew-2225ebc44ec48b16035a9f1bfe55ba7a928d03cb.tar.bz2 | |
Adapt to Git 1.9's `submodule foreach` changes
Closes Homebrew/homebrew#26871.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Homebrew/download_strategy.rb')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 65bceffa4..e4628511a 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -609,8 +609,8 @@ class GitDownloadStrategy < VCSDownloadStrategy    end    def checkout_submodules(dst) -    sub_cmd = %W{git checkout-index -a -f --prefix=#{dst}/$path/} -    safe_system 'git', 'submodule', '--quiet', 'foreach', '--recursive', *sub_cmd +    sub_cmd = "git checkout-index -a -f --prefix=#{dst}/$path/" +    safe_system 'git', 'submodule', '--quiet', 'foreach', '--recursive', sub_cmd    end  end  | 
