From 87cd97a52ea9463b8fee9f92b1b0671d9b037f1f Mon Sep 17 00:00:00 2001 From: Chris Wegrzyn Date: Tue, 4 May 2021 09:45:31 -0400 Subject: [PATCH] Don't use --first-parent on core tap --- Library/Homebrew/formula_versions.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index f77a0da1ca..c09d4b4158 100644 --- a/Library/Homebrew/formula_versions.rb +++ b/Library/Homebrew/formula_versions.rb @@ -30,8 +30,9 @@ class FormulaVersions def rev_list(branch) repository.cd do - Utils.popen_read("git", "rev-list", "--abbrev-commit", "--remove-empty", "--first-parent", branch, "--", - entry_name) do |io| + rev_list_cmd = ["git", "rev-list", "--abbrev-commit", "--remove-empty"] + rev_list_cmd << "--first-parent" unless repository == CoreTap.instance.path + Utils.popen_read(*rev_list_cmd, branch, "--", entry_name) do |io| yield io.readline.chomp until io.eof? end end