diff options
Diffstat (limited to 'lib/bundler/source')
-rw-r--r-- | lib/bundler/source/git.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/bundler/source/git.rb b/lib/bundler/source/git.rb index c52ce04638..78f9ff0560 100644 --- a/lib/bundler/source/git.rb +++ b/lib/bundler/source/git.rb @@ -188,7 +188,7 @@ module Bundler end def specs(*) - set_cache_path!(app_cache_path) if use_app_cache? + set_up_app_cache!(app_cache_path) if use_app_cache? if requires_checkout? && !@copied FileUtils.rm_rf(app_cache_path) if use_app_cache? && git_proxy.not_a_bare_repository? @@ -320,6 +320,11 @@ module Bundler @install_path = path end + def set_up_app_cache!(path) + FileUtils.mkdir_p(path.join("refs")) + set_cache_path!(path) + end + def has_app_cache? cached_revision && super end |