From f11ddb9aab4a6ebfa6a4be8888cca6b6908944aa Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 24 Feb 2020 13:25:59 +0100 Subject: [PATCH] log: use user path Without this, one can't use a custom pager, if it's present in non-standard PATH, like for example Homebrew on Linux prefix. --- Library/Homebrew/cmd/log.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Library/Homebrew/cmd/log.rb b/Library/Homebrew/cmd/log.rb index 89b75da874..22809ba1c2 100644 --- a/Library/Homebrew/cmd/log.rb +++ b/Library/Homebrew/cmd/log.rb @@ -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