lib/bundler/source/git.rb in bundler-1.6.1 vs lib/bundler/source/git.rb in bundler-1.6.2

- old
+ new

@@ -209,10 +209,14 @@ def revision git_proxy.revision end + def allow_git_ops? + @allow_remote || @allow_cached + end + private def serialize_gemspecs_in(destination) expanded_path = destination.expand_path(Bundler.root) Dir["#{expanded_path}/#{@glob}"].each do |spec_path| @@ -265,23 +269,19 @@ input = uri end Digest::SHA1.hexdigest(input) end - def allow_git_ops? - @allow_remote || @allow_cached - end - def cached_revision options["revision"] end def cached? cache_path.exist? end def git_proxy - @git_proxy ||= GitProxy.new(cache_path, uri, ref, cached_revision){ allow_git_ops? } + @git_proxy ||= GitProxy.new(cache_path, uri, ref, cached_revision, self) end end end