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:
parent
ccb216c9c7
commit
2225ebc44e
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user