From 6d791acf22de5c8618cec01ce9ece633231cfad5 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 13 Feb 2015 22:16:57 -0500 Subject: [PATCH] Support older git without "submodule sync --recursive" Fixes Homebrew/homebrew#36774. --- Library/Homebrew/download_strategy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index afd8840c52..70338d37e9 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