class Bundler::Source::Git

def cache_path

When using local git repos, this is set to the local repo.
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 ||= if Bundler.feature_flag.global_gem_cache?
    Bundler.user_cache
  else
    Bundler.bundle_path.join("cache", "bundler")
  end.join("git", git_scope)
end