Skip to content
Snippets Groups Projects
Commit feb836e1 authored by Misty De Meo's avatar Misty De Meo
Browse files

doctor: skip git origin check without brew repo

Likely fixes Homebrew/homebrew#18324.
parent 06f98132
No related branches found
No related tags found
No related merge requests found
......@@ -782,6 +782,9 @@ def check_the_git_origin
return unless which "git"
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
origin = `git config --get remote.origin.url`.chomp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment