Support older git without "submodule sync --recursive"

Fixes Homebrew/homebrew#36774.
This commit is contained in:
Jack Nagel 2015-02-13 22:16:57 -05:00
parent 56f7208f8e
commit 6d791acf22

View File

@ -646,7 +646,7 @@ class GitDownloadStrategy < VCSDownloadStrategy
end
def update_submodules
quiet_safe_system "git", "submodule", "sync", "--recursive"
quiet_safe_system "git", "submodule", "foreach", "--recursive", "git submodule sync"
quiet_safe_system "git", "submodule", "update", "--init", "--recursive"
end