Skip to content
Snippets Groups Projects
Commit b757c927 authored by Mike McQuaid's avatar Mike McQuaid
Browse files

diagnostic: also accept trailing / on git urls.

parent 46a91428
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment