Method: Bundler::Source::Git::GitProxy#initialize

Defined in:
lib/bundler/source/git/git_proxy.rb

#initialize(path, uri, options = {}, revision = nil, git = nil) ⇒ GitProxy

Returns a new instance of GitProxy.



60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# File 'lib/bundler/source/git/git_proxy.rb', line 60

def initialize(path, uri, options = {}, revision = nil, git = nil)
  @path     = path
  @uri      = uri
  @tag      = options["tag"]
  @branch   = options["branch"]
  @ref      = options["ref"]
  if @tag
    raise AmbiguousGitReference.new(options) if @branch || @ref
    @explicit_ref = @tag
  else
    @explicit_ref = @ref || @branch
  end
  @revision = revision
  @git      = git
  @commit_ref = nil
end