diff options
| author | Samuel Giddins <segiddins@segiddins.me> | 2017-07-24 15:21:37 -0500 |
|---|---|---|
| committer | Samuel Giddins <segiddins@segiddins.me> | 2017-07-25 10:38:27 -0500 |
| commit | 1f564fc439d5f50920514fe582a91b42448bc3a7 (patch) | |
| tree | f7bd062f6f3980e5fdc337de1d3aacbd503997d1 /lib/bundler/source | |
| parent | 219ea82fd4c84fcf047fc4cd957147600902288e (diff) | |
| download | bundler-1f564fc439d5f50920514fe582a91b42448bc3a7.tar.gz | |
[Source::Git] Cache repos globallyseg-globally-cache-git-repos
Diffstat (limited to 'lib/bundler/source')
| -rw-r--r-- | lib/bundler/source/git.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb index eb605771f4..fd8f6debea 100644 --- a/lib/bundler/source/git.rb +++ b/lib/bundler/source/git.rb @@ -211,11 +211,11 @@ module Bundler @cache_path ||= begin git_scope = "#{base_name}-#{uri_hash}" - if Bundler.requires_sudo? - Bundler.user_bundle_path.join("cache/git", git_scope) + if Bundler.requires_sudo? || Bundler.feature_flag.global_gem_cache? + Bundler.user_cache else - Bundler.cache.join("git", git_scope) - end + Bundler.bundle_path.join("cache", "bundler") + end.join("git", git_scope) end end |
