From 79bde9c13bf99c26e3053df468920c1eb1e8652c Mon Sep 17 00:00:00 2001 From: Christian Moritz Date: Mon, 2 Feb 2015 18:08:02 +0100 Subject: GitDownloadStrategy: support submodule changes This commits adds support for updating a formula with changed git submodules with GitDownloadStrategy when the cloned repository is still in the cache. This is done by running git submodule sync --recursive before updating the submodules, so that git can reload the submodule config from the updated .gitmodules file. Fixes Homebrew/homebrew#36395. Closes Homebrew/homebrew#36466. Signed-off-by: Jack Nagel --- Library/Homebrew/download_strategy.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'Library') diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 36c96acb4..9b3759413 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -646,6 +646,7 @@ class GitDownloadStrategy < VCSDownloadStrategy end def update_submodules + quiet_safe_system "git", "submodule", "sync", "--recursive" quiet_safe_system "git", "submodule", "update", "--init", "--recursive" end -- cgit v1.2.3