diff --git a/Library/Homebrew/cmd/install.rb b/Library/Homebrew/cmd/install.rb index 14f6a2a12f..dc82e2a7b0 100644 --- a/Library/Homebrew/cmd/install.rb +++ b/Library/Homebrew/cmd/install.rb @@ -125,7 +125,7 @@ module Homebrew fi.build_from_source = ARGV.build_from_source? fi.force_bottle = ARGV.force_bottle? fi.interactive = ARGV.interactive? - fi.interactive &&= :git if ARGV.git? + fi.git = ARGV.git? fi.verbose = ARGV.verbose? fi.verbose &&= :quieter if ARGV.quieter? fi.debug = ARGV.debug? diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 98065a92c4..b5859df4f1 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -30,7 +30,7 @@ class FormulaInstaller attr_accessor :options mode_attr_accessor :show_summary_heading, :show_header mode_attr_accessor :build_from_source, :build_bottle, :force_bottle - mode_attr_accessor :ignore_deps, :only_deps, :interactive + mode_attr_accessor :ignore_deps, :only_deps, :interactive, :git mode_attr_accessor :verbose, :debug def initialize(formula) @@ -42,6 +42,7 @@ class FormulaInstaller @build_bottle = false @force_bottle = false @interactive = false + @git = false @verbose = false @debug = false @options = Options.new @@ -425,11 +426,8 @@ class FormulaInstaller args << "--bottle-arch=#{ARGV.bottle_arch}" if ARGV.bottle_arch end - if interactive? - args << "--interactive" - args << "--git" if interactive == :git - end - + args << "--git" if git? + args << "--interactive" if interactive? args << "--verbose" if verbose? args << "--debug" if debug? args << "--cc=#{ARGV.cc}" if ARGV.cc