update git config key for analytics bool

This commit is contained in:
Brian Morton 2018-08-15 14:23:31 -07:00 committed by Claudia
parent 1b51456b4c
commit ea29158a4d
No known key found for this signature in database
GPG Key ID: 246AC3C0F10BE51F

View File

@ -23,7 +23,7 @@ module Homebrew
analytics_message_displayed =
Utils.popen_read("git", "config", "--local", "--get", "homebrew.analyticsmessage").chuzzle
caskanalyticsmessage =
Utils.popen_read("git", "config", "--local", "--get", "homebrew.cask.analyticsmessage").chuzzle
Utils.popen_read("git", "config", "--local", "--get", "homebrew.caskanalyticsmessage").chuzzle
analytics_disabled =
Utils.popen_read("git", "config", "--local", "--get", "homebrew.analyticsdisabled").chuzzle
if analytics_message_displayed != "true" &&
@ -47,7 +47,7 @@ module Homebrew
# Consider the message possibly missed if not a TTY.
if $stdout.tty?
safe_system "git", "config", "--local", "--replace-all", "homebrew.analyticsmessage", "true"
safe_system "git", "config", "--local", "--replace-all", "homebrew.cask.analyticsmessage", "true"
safe_system "git", "config", "--local", "--replace-all", "homebrew.caskanalyticsmessage", "true"
end
end