Support older git without "submodule sync --recursive"
Fixes Homebrew/homebrew#36774.
This commit is contained in:
parent
56f7208f8e
commit
6d791acf22
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user