doctor: use Homebrew.git_origin
This commit is contained in:
parent
31ddce85e7
commit
bff03ee5ba
@ -916,10 +916,9 @@ class Checks
|
||||
def check_git_origin
|
||||
return unless git? && (HOMEBREW_REPOSITORY/".git").exist?
|
||||
|
||||
HOMEBREW_REPOSITORY.cd do
|
||||
origin = `git config --get remote.origin.url`.strip
|
||||
origin = Homebrew.git_origin
|
||||
|
||||
if origin.empty? then <<-EOS.undent
|
||||
if origin.nil? then <<-EOS.undent
|
||||
Missing git origin remote.
|
||||
|
||||
Without a correctly configured origin, Homebrew won't update
|
||||
@ -940,7 +939,6 @@ class Checks
|
||||
EOS
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def check_for_autoconf
|
||||
return unless MacOS::Xcode.provides_autotools?
|
||||
|
Loading…
x
Reference in New Issue
Block a user