From 3a0204dd0b1e31f1ebfb34224e1ffb2d3ca84b8d Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 9 Sep 2013 16:15:17 +0100 Subject: git-etc: add removed files too. --- Library/Homebrew/formula_installer.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library') diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb index 91766bbea..a4768d57a 100644 --- a/Library/Homebrew/formula_installer.rb +++ b/Library/Homebrew/formula_installer.rb @@ -78,7 +78,7 @@ class FormulaInstaller etc.cd do quiet_system 'git', 'init' unless (etc+'.git').directory? quiet_system 'git', 'checkout', '-B', "#{f.name}-last" - system 'git', 'add', '.' + system 'git', 'add', '--all', '.' system 'git', 'commit', '-m', "#{f.name}-#{f.version}: preinstall" end end @@ -94,14 +94,14 @@ class FormulaInstaller etc.cd do FileUtils.cp_r keg_etc_files, etc - system 'git', 'add', '.' + system 'git', 'add', '--all', '.' if quiet_system 'git', 'diff', '--exit-code', default_branch quiet_system 'git', 'reset', '--hard' else if quiet_system 'git', 'rev-parse', 'master' quiet_system 'git', 'checkout', '-f', 'master' FileUtils.cp_r keg_etc_files, etc - quiet_system 'git', 'add', '.' + quiet_system 'git', 'add', '--all', '.' else quiet_system 'git', 'checkout', '-b' 'master' end -- cgit v1.2.3