doctor: skip git origin check without brew repo
Likely fixes Homebrew/homebrew#18324.
This commit is contained in:
parent
06f98132d3
commit
feb836e1ea
@ -782,6 +782,9 @@ def check_the_git_origin
|
|||||||
return unless which "git"
|
return unless which "git"
|
||||||
return if check_for_git_origin
|
return if check_for_git_origin
|
||||||
|
|
||||||
|
# otherwise this will nag users with no repo about their remote
|
||||||
|
return unless (HOMEBREW_REPOSITORY/'.git').exist?
|
||||||
|
|
||||||
HOMEBREW_REPOSITORY.cd do
|
HOMEBREW_REPOSITORY.cd do
|
||||||
origin = `git config --get remote.origin.url`.chomp
|
origin = `git config --get remote.origin.url`.chomp
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user