pull: only add gpg to path if enabled in git
This commit is contained in:
parent
96b95a838a
commit
bdfbc70c87
@ -103,6 +103,7 @@ module Homebrew
|
||||
end
|
||||
|
||||
# Depending on user configuration, git may try to invoke gpg.
|
||||
if Utils.popen_read("git config --get --bool commit.gpgsign").chomp == "true"
|
||||
begin
|
||||
gnupg = Formula["gnupg"]
|
||||
rescue FormulaUnavailableError # rubocop:disable Lint/HandleExceptions
|
||||
@ -113,6 +114,7 @@ module Homebrew
|
||||
ENV["PATH"] = path
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
do_bump = @args.bump? && !@args.clean?
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user