From 2225ebc44ec48b16035a9f1bfe55ba7a928d03cb 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 Homebrew/homebrew#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