diff options
| author | Mike McQuaid | 2017-03-28 19:44:30 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2017-03-28 19:44:30 +0100 |
| commit | b757c927afe7abb5d284cf28dc7d5e3321dba14c (patch) | |
| tree | c5d90012ce6ca4c456d09bbd26d1b1d96dbd32cc | |
| parent | 46a91428f7073319b3f8f2d98f140dba8f8b1956 (diff) | |
| download | brew-b757c927afe7abb5d284cf28dc7d5e3321dba14c.tar.bz2 | |
diagnostic: also accept trailing / on git urls.
| -rw-r--r-- | Library/Homebrew/diagnostic.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/diagnostic.rb b/Library/Homebrew/diagnostic.rb index 110130f11..61cdf2f1a 100644 --- a/Library/Homebrew/diagnostic.rb +++ b/Library/Homebrew/diagnostic.rb @@ -808,7 +808,7 @@ module Homebrew properly. You can solve this by adding the Homebrew remote: git -C "#{HOMEBREW_REPOSITORY}" remote add origin #{Formatter.url("https://github.com/Homebrew/brew.git")} EOS - elsif origin !~ %r{Homebrew/brew(\.git)?$} + elsif origin !~ %r{Homebrew/brew(\.git|/)?$} <<-EOS.undent Suspicious Homebrew/brew git origin remote found. @@ -837,7 +837,7 @@ module Homebrew properly. You can solve this by adding the Homebrew remote: git -C "#{coretap_path}" remote add origin #{Formatter.url("https://github.com/Homebrew/homebrew-core.git")} EOS - elsif origin !~ %r{Homebrew/homebrew-core(\.git)?$} + elsif origin !~ %r{Homebrew/homebrew-core(\.git|/)?$} <<-EOS.undent Suspicious #{CoreTap.instance} git origin remote found. |
