diff options
| author | Josh Tilles | 2014-02-20 17:12:34 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-02-21 00:05:42 -0500 |
| commit | e5a7ea7ede989c3faa6f71409d158f1ca0f94eda (patch) | |
| tree | 540e065e6c91a2269c211039efb9a59197025679 /Library/Homebrew/download_strategy.rb | |
| parent | f45dd349ddde91626b4c669d7d04d7afeab035c4 (diff) | |
| download | homebrew-e5a7ea7ede989c3faa6f71409d158f1ca0f94eda.tar.bz2 | |
Adapt to Git 1.9's `submodule foreach` changes
Closes #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 |
