diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 65d47c1612..d48aed960f 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -534,6 +534,10 @@ class GitDownloadStrategy < VCSDownloadStrategy "git" end + def cache_version + 0 + end + def update cached_location.cd do config_repo @@ -600,6 +604,7 @@ class GitDownloadStrategy < VCSDownloadStrategy def clone_repo safe_system 'git', *clone_args + safe_system "git", "config", "homebrew.cacheversion", cache_version cached_location.cd { update_submodules } if submodules? end