A hash for the git gem based on the git repository URI.
# File lib/rubygems/source/git.rb, line 219
def uri_hash # :nodoc:
normalized =
if @repository =~ %^\w+://(\w+@)?% then
uri = URI(@repository).normalize.to_s.sub %/$%,''
uri.sub(/\A(\w+)/) { $1.downcase }
else
@repository
end
Digest::SHA1.hexdigest normalized
end