Merge pull request #7074 from dawidd6/log-homebrew-path

log: use user path
This commit is contained in:
Mike McQuaid 2020-02-25 08:43:38 +00:00 committed by GitHub
commit 575f76a3fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,6 +29,10 @@ module Homebrew
def log
log_args.parse
# As this command is simplifying user run commands then let's just use a
# user path, too.
ENV["PATH"] = ENV["HOMEBREW_PATH"]
if ARGV.named.empty?
git_log HOMEBREW_REPOSITORY
else