From e5a7ea7ede989c3faa6f71409d158f1ca0f94eda Mon Sep 17 00:00:00 2001 From: Josh Tilles Date: Thu, 20 Feb 2014 17:12:34 -0500 Subject: Adapt to Git 1.9's `submodule foreach` changes Closes #26871. Signed-off-by: Jack Nagel --- Library/Homebrew/download_strategy.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3