Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Commit

Permalink
doctor: loosen git origin regexp
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jacknagel committed Jan 18, 2013
1 parent e211567 commit f44954a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/cmd/doctor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f44954a

Please sign in to comment.