Merge pull request #5621

diagnostic: ignore case in origin comparison
This commit is contained in:
Michka Popoff 2019-01-26 19:42:04 +01:00 committed by GitHub
commit 3bdc788585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.