Adapt to Git 1.9's submodule foreach changes

Closes Homebrew/homebrew#26871.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Josh Tilles 2014-02-20 17:12:34 -05:00 committed by Jack Nagel
parent ccb216c9c7
commit 2225ebc44e

View File

@ -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