From b24e96e28da945cf063f5868f32afeed7e002dd1 Mon Sep 17 00:00:00 2001 From: Michka Popoff Date: Sat, 26 Jan 2019 16:07:27 +0100 Subject: [PATCH] diagnostic: ignore case in origin comparison On circle-ci we do: git remote set-url origin $CIRCLE_REPOSITORY_URL which is defined as: https://github.com/linuxbrew/homebrew-core This is being compared to: https://github.com/Linuxbrew/homebrew-core --- Library/Homebrew/diagnostic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index bd8afa26b4..813c80bcf4 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -583,7 +583,7 @@ module Homebrew properly. You can solve this by adding the Homebrew remote: git -C "#{coretap_path}" remote add origin #{Formatter.url(CoreTap.instance.default_remote)} EOS - elsif origin !~ %r{#{CoreTap.instance.full_name}(\.git|/)?$} + elsif origin !~ %r{#{CoreTap.instance.full_name}(\.git|/)?$}i <<~EOS Suspicious #{CoreTap.instance} git origin remote found.