doctor: check for migrated origin Git remote.
Closes Homebrew/homebrew#25211.
This commit is contained in:
parent
228a5a545a
commit
a1728a8174
@ -775,9 +775,9 @@ def check_git_origin
|
|||||||
Without a correctly configured origin, Homebrew won't update
|
Without a correctly configured origin, Homebrew won't update
|
||||||
properly. You can solve this by adding the Homebrew remote:
|
properly. You can solve this by adding the Homebrew remote:
|
||||||
cd #{HOMEBREW_REPOSITORY}
|
cd #{HOMEBREW_REPOSITORY}
|
||||||
git remote add origin https://github.com/mxcl/homebrew.git
|
git remote add origin https://github.com/Homebrew/homebrew.git
|
||||||
EOS
|
EOS
|
||||||
elsif origin !~ /mxcl\/homebrew(\.git)?$/ then <<-EOS.undent
|
elsif origin !~ /Homebrew\/homebrew(\.git)?$/ then <<-EOS.undent
|
||||||
Suspicious git origin remote found.
|
Suspicious git origin remote found.
|
||||||
|
|
||||||
With a non-standard origin, Homebrew won't pull updates from
|
With a non-standard origin, Homebrew won't pull updates from
|
||||||
@ -786,7 +786,7 @@ def check_git_origin
|
|||||||
|
|
||||||
Unless you have compelling reasons, consider setting the
|
Unless you have compelling reasons, consider setting the
|
||||||
origin remote to point at the main repository, located at:
|
origin remote to point at the main repository, located at:
|
||||||
https://github.com/mxcl/homebrew.git
|
https://github.com/Homebrew/homebrew.git
|
||||||
EOS
|
EOS
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user