From 331a725516d17cc0a129d81c8eceff3c13ca5686 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 21 Nov 2010 10:32:33 +0000 Subject: [PATCH] Only try and install using git pull when formula. --- Library/Contributions/examples/brew-pull.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb index cb5603050b..bad9c4ce78 100755 --- a/Library/Contributions/examples/brew-pull.rb +++ b/Library/Contributions/examples/brew-pull.rb @@ -38,7 +38,7 @@ HOMEBREW_REPOSITORY.cd do if install status, filename = `git diff HEAD~1 --name-status`.split() # Don't try and do anything to removed files. - if status == 'A' or status == 'M' + if (status == 'A' or status == 'M') and filename.include? '/Formula/' formula = File.basename(filename, '.rb') ohai "Installing #{formula}" # Not sure if this is the best way to install?