Don't print git origin check without git repo
This commit is contained in:
parent
667abe8185
commit
14bb39b898
@ -738,6 +738,8 @@ end
|
|||||||
|
|
||||||
def check_for_git_origin
|
def check_for_git_origin
|
||||||
return unless which "git"
|
return unless which "git"
|
||||||
|
# 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
|
||||||
if `git config --get remote.origin.url`.chomp.empty? then <<-EOS.undent
|
if `git config --get remote.origin.url`.chomp.empty? then <<-EOS.undent
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user