Sha256: 6592bfd3a55b9a77f417b75d4ff83ba35be0a7aef156bc61dd5afead87132833

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

require 'r10k/git'

# :nocov:
#
# @deprecated This has been replaced by the ShellGit provider and the
#   StatefulRepository class and will be removed in 2.0.0
#
# @api private
class R10K::Git::RemoteHead < R10K::Git::Head

  def sha1
    if @repository.nil?
      raise ArgumentError, "Cannot resolve #{self.inspect}: no associated git repository"
    else
      @repository.resolve_head("refs/remotes/cache/#{@head}")
    end
  end
end
# :nocov:

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
r10k-1.5.1 lib/r10k/git/remote_head.rb