class Bundler::Source::Git
def cache_path
across different projects, this cache will be shared.
of the git repository. When using the same git repository
This is the path which is going to contain a cache
def cache_path @cache_path ||= begin git_scope = "#{base_name}-#{uri_hash}" if Bundler.requires_sudo? Bundler.user_bundle_path.join("cache/git", git_scope) else Bundler.cache.join("git", git_scope) end end end