diff options
| author | Jack Nagel | 2013-01-17 21:46:02 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-17 21:46:02 -0600 |
| commit | 6b59e610f07c3315badadf3856a75cda73d13f9d (patch) | |
| tree | 44dd82324f084aca1a199437755738c50936ebad /Library/Homebrew | |
| parent | 997f9d007563a7522173a4296f1c15e2da6e1a9b (diff) | |
| download | brew-6b59e610f07c3315badadf3856a75cda73d13f9d.tar.bz2 | |
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.
Diffstat (limited to 'Library/Homebrew')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index d57226a99..360236511 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 |
