class Librarian::Source::Git::Repository
Public Instance Methods
Source
# File lib/librarian/puppet/source/git.rb, line 10 def hash_from(remote, reference) branch_names = remote_branch_names[remote] reference = "#{remote}/#{reference}" if branch_names.include?(reference) command = %W[rev-parse #{reference}^{commit} --quiet] run!(command, chdir: true).strip end