Method: Integrity::SCM::Git#head

Defined in:
lib/integrity/scm/git.rb

#headObject



33
34
35
36
# File 'lib/integrity/scm/git.rb', line 33

def head
  log "Getting the HEAD of '#{uri}' at '#{branch}'"
  `git ls-remote --heads #{uri} #{branch} | awk '{print $1}'`.chomp
end