From 6b59e610f07c3315badadf3856a75cda73d13f9d Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 17 Jan 2013 21:46:02 -0600 Subject: [PATCH] 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. --- Library/Homebrew/cmd/doctor.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index d57226a996..3602365118 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -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