diff options
| author | Jack Nagel | 2014-12-17 23:09:30 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-12-17 23:18:17 -0500 |
| commit | 1cfeba04a85b894773325ef5a00a42e37b42ec53 (patch) | |
| tree | 5d1a7ac2440bab5a005cd4ffe73b329332e16aba /Library | |
| parent | 6096ec95680a87456b03060d37acef19827978d0 (diff) | |
| download | brew-1cfeba04a85b894773325ef5a00a42e37b42ec53.tar.bz2 | |
Start versioning cached git clones
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 65d47c161..d48aed960 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 |
