From 84bbaf9d29631e87db6dfaafd1d68119fae7b4a8 Mon Sep 17 00:00:00 2001 From: Chris Wegrzyn Date: Tue, 4 May 2021 11:30:14 -0400 Subject: [PATCH] Replace unless with if Co-authored-by: Mike McQuaid --- Library/Homebrew/formula_versions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/formula_versions.rb b/Library/Homebrew/formula_versions.rb index c09d4b4158..281e9f8be0 100644 --- a/Library/Homebrew/formula_versions.rb +++ b/Library/Homebrew/formula_versions.rb @@ -31,7 +31,7 @@ class FormulaVersions def rev_list(branch) repository.cd do rev_list_cmd = ["git", "rev-list", "--abbrev-commit", "--remove-empty"] - rev_list_cmd << "--first-parent" unless repository == CoreTap.instance.path + rev_list_cmd << "--first-parent" if repository != CoreTap.instance.path Utils.popen_read(*rev_list_cmd, branch, "--", entry_name) do |io| yield io.readline.chomp until io.eof? end