class CodeClimate::TestReporter::Git

def head_from_git

def head_from_git
  commit_hash = git("log -1 --pretty=format:'%H'")
  !commit_hash.empty? ? commit_hash : nil
end