aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2015-02-13 22:16:57 -0500
committerJack Nagel2015-02-13 22:16:57 -0500
commit6d791acf22de5c8618cec01ce9ece633231cfad5 (patch)
treef6db2188afb03810c463f2e3c12649dd3181693a /Library
parent56f7208f8e3c510b779ade3729482217e5cb05d8 (diff)
downloadbrew-6d791acf22de5c8618cec01ce9ece633231cfad5.tar.bz2
Support older git without "submodule sync --recursive"
Fixes Homebrew/homebrew#36774.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index afd8840c5..70338d37e 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -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