lib/bundler/source/git.rb in bundler-1.3.0.pre vs lib/bundler/source/git.rb in bundler-1.3.0.pre.2

- old
+ new

@@ -164,12 +164,15 @@ return if path == app_cache_path cached! FileUtils.rm_rf(app_cache_path) git_proxy.checkout if requires_checkout? git_proxy.copy_to(app_cache_path, @submodules) - FileUtils.rm_rf(app_cache_path.join(".git")) - FileUtils.touch(app_cache_path.join(".bundlecache")) + # Evaluate gemspecs and cache the result. Gemspecs + # in git might require git or other dependencies. + # The gemspecs we cache should already be evaluated. + spec_path = app_cache_path.join(File.basename(spec.loaded_from)) + File.open(spec_path, 'wb') {|file| file.print spec.to_ruby } end def load_spec_files super rescue PathError, GitError @@ -262,6 +265,6 @@ end end end -end \ No newline at end of file +end