doctor: loosen git origin regexp

If the repository is set up by `brew update`, the remote URL is
https://github.com/mxcl/homebrew.git, but if it is set up by the install
script, the .git suffix is omitted.
This commit is contained in:
Jack Nagel 2013-01-17 21:46:02 -06:00
parent 997f9d0075
commit 6b59e610f0

View File

@ -744,7 +744,7 @@ def check_the_git_origin
HOMEBREW_REPOSITORY.cd do
origin = `git config --get remote.origin.url`.chomp
unless origin =~ /mxcl\/homebrew\.git$/ then <<-EOS.undent
unless origin =~ /mxcl\/homebrew(\.git)?$/ then <<-EOS.undent
Suspicious git origin remote found.
With a non-standard origin, Homebrew won't pull updates from