diff options
| author | Mike McQuaid | 2013-09-09 16:15:17 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-09 16:15:33 +0100 |
| commit | 3a0204dd0b1e31f1ebfb34224e1ffb2d3ca84b8d (patch) | |
| tree | 3d8bf17af7034a266eb75e4e70bf872b31157880 /Library | |
| parent | 20ed26c655601006ba06e558e5c3cb9962e51546 (diff) | |
| download | brew-3a0204dd0b1e31f1ebfb34224e1ffb2d3ca84b8d.tar.bz2 | |
git-etc: add removed files too.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula_installer.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
