Don't use --first-parent on core tap

This commit is contained in:
Chris Wegrzyn 2021-05-04 09:45:31 -04:00
parent 570b62dd75
commit 87cd97a52e

View File

@ -30,8 +30,9 @@ class FormulaVersions
def rev_list(branch) def rev_list(branch)
repository.cd do repository.cd do
Utils.popen_read("git", "rev-list", "--abbrev-commit", "--remove-empty", "--first-parent", branch, "--", rev_list_cmd = ["git", "rev-list", "--abbrev-commit", "--remove-empty"]
entry_name) do |io| 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? yield io.readline.chomp until io.eof?
end end
end end