utils/git: remove external dependency loading
This commit is contained in:
parent
ba4d3ca94f
commit
36a57aa738
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user