diff options
| author | Christian Moritz | 2015-02-02 18:08:02 +0100 |
|---|---|---|
| committer | Jack Nagel | 2015-02-03 20:00:34 -0500 |
| commit | 52272a3528417e04e453cb786f1e59df5711e515 (patch) | |
| tree | 86be9f1af3d7f9fa18599d29b7ee230ebe27ca45 /Library | |
| parent | 9b37a73d1311e5b1af6d7c463f37ad2ad4ed8c1c (diff) | |
| download | homebrew-52272a3528417e04e453cb786f1e59df5711e515.tar.bz2 | |
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 #36395.
Closes #36466.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |
