diff options
author | José Valim <jose.valim@plataformatec.com.br> | 2012-03-20 10:50:29 +0100 |
---|---|---|
committer | José Valim <jose.valim@plataformatec.com.br> | 2012-03-20 10:50:31 +0100 |
commit | d351e68fa0a5df6de7aff587effce0801297848a (patch) | |
tree | 5ae89f0d35142e192cb0ccc3eae76cb7fafd30b8 /lib/bundler/source.rb | |
parent | 6ef6e7514d0e2071585a397d51a93dd26d44ab3c (diff) | |
download | bundler-d351e68fa0a5df6de7aff587effce0801297848a.tar.gz |
Just cache git and path is --all is given.
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r-- | lib/bundler/source.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index 51b85f9deb..db415edf99 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -367,6 +367,7 @@ module Bundler end def cache(spec) + return unless Bundler.settings[:cache_all] return if path.expand_path(Bundler.root).to_s.index(Bundler.root.to_s) == 0 FileUtils.rm_rf(app_cache_path) FileUtils.cp_r("#{path}/.", app_cache_path) @@ -766,7 +767,9 @@ module Bundler end def cache(spec) + return unless Bundler.settings[:cache_all] return if path.expand_path(Bundler.root).to_s.index(Bundler.root.to_s) == 0 + cached! FileUtils.rm_rf(app_cache_path) git_proxy.checkout git_proxy.copy_to(app_cache_path, @submodules) |