aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2013-09-09 16:15:17 +0100
committerMike McQuaid2013-09-09 16:15:33 +0100
commita04b3a9c62c506614223d56f19bf19764bb0fd00 (patch)
tree5b0cca6d0400a90e8da023ddd5548ef1d5585dfd /Library
parent42496e37692909e8fd340acf10d51e94d41e5716 (diff)
downloadhomebrew-a04b3a9c62c506614223d56f19bf19764bb0fd00.tar.bz2
git-etc: add removed files too.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula_installer.rb6
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