diff options
| author | Mike McQuaid | 2013-09-09 16:15:17 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2013-09-09 16:15:33 +0100 |
| commit | a04b3a9c62c506614223d56f19bf19764bb0fd00 (patch) | |
| tree | 5b0cca6d0400a90e8da023ddd5548ef1d5585dfd /Library | |
| parent | 42496e37692909e8fd340acf10d51e94d41e5716 (diff) | |
| download | homebrew-a04b3a9c62c506614223d56f19bf19764bb0fd00.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 |
