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