lib/bundler/source/git.rb in bundler-2.2.29 vs lib/bundler/source/git.rb in bundler-2.2.30
- old
+ new
@@ -305,10 +305,12 @@
input = Bundler::URI.parse(uri).normalize.to_s.sub(%r{/$}, "")
else
# If there is no URI scheme, assume it is an ssh/git URI
input = uri
end
- SharedHelpers.digest(:SHA1).hexdigest(input)
+ # We use SHA1 here for historical reason and to preserve backward compatibility.
+ # But a transition to a simpler mangling algorithm would be welcome.
+ Bundler::Digest.sha1(input)
end
def cached_revision
options["revision"]
end