From 6423c27e8b6824378a1cce4563a06a91f0108cd4 Mon Sep 17 00:00:00 2001 From: hyuraku <32809703+hyuraku@users.noreply.github.com> Date: Tue, 8 Nov 2022 21:02:11 +0900 Subject: [PATCH] change the condition on GitHub.multiple_short_commits_exist? --- Library/Homebrew/utils/github.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/utils/github.rb b/Library/Homebrew/utils/github.rb index 712ffda7b3..a72fa5ab68 100644 --- a/Library/Homebrew/utils/github.rb +++ b/Library/Homebrew/utils/github.rb @@ -694,8 +694,8 @@ module GitHub url_to("repos", user, repo, "commits", commit).to_s ) - return true if status.success? - return true unless output + return true unless status.success? + return true if output.blank? output[/^Status: (200)/, 1] != "200" end