rev_parse()
Converts the git reference for the repository into a commit hash.
# File lib/rubygems/source/git.rb, line 180 def rev_parse # :nodoc: Dir.chdir repo_cache_dir do Gem::Util.popen(@git, 'rev-parse', @reference).strip end end