utils/git: remove external dependency loading

This commit is contained in:
Bo Anderson 2021-10-07 14:51:52 +01:00
parent ba4d3ca94f
commit 36a57aa738
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -123,11 +123,11 @@ module Utils
end end
def setup_gpg! def setup_gpg!
require "formula" gnupg_bin = HOMEBREW_PREFIX/"opt/gnupg/bin"
return unless Formula["gnupg"].optlinked? return unless gnupg_bin.directory?
ENV["PATH"] = PATH.new(ENV["PATH"]) ENV["PATH"] = PATH.new(ENV["PATH"])
.prepend(Formula["gnupg"].opt_bin) .prepend(gnupg_bin)
end end
# Special case of `git cherry-pick` that permits non-verbose output and # Special case of `git cherry-pick` that permits non-verbose output and