This is the path which is going
to contain a cache of the git
repository. When using the same git repository across different projects,
this cache will be shared.
When using local git repos, this is set to the local repo.
# File lib/bundler/source/git.rb, line 210
def cache_path
@cache_path ||= begin
if Bundler.requires_sudo? || Bundler.feature_flag.global_gem_cache?
Bundler.user_cache
else
Bundler.bundle_path.join("cache", "bundler")
end.join("git", git_scope)
end
end