system_config: hide HOMEBREW_BUNDLE_* env vars.

These are being introduced in e.g.
https://github.com/Homebrew/homebrew-bundle/pull/486 and we don't care
about them in Homebrew bug reports.
This commit is contained in:
Mike McQuaid 2019-06-12 12:43:44 +01:00
parent ae025d68fe
commit 7c04c34a88
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -169,6 +169,7 @@ class SystemConfig
unless ENV["HOMEBREW_ENV"] unless ENV["HOMEBREW_ENV"]
ENV.sort.each do |key, value| ENV.sort.each do |key, value|
next unless key.start_with?("HOMEBREW_") next unless key.start_with?("HOMEBREW_")
next if key.start_with?("HOMEBREW_BUNDLE_")
next if boring_keys.include?(key) next if boring_keys.include?(key)
next if defaults_hash[key.to_sym] next if defaults_hash[key.to_sym]