aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMike McQuaid2010-11-21 10:32:33 +0000
committerMike McQuaid2010-11-21 10:32:33 +0000
commit0bb0cf396c3a17997996b80c77e3423d9e3b0d37 (patch)
treeb8439e48e48531b38de9060e3626201b93db614b /Library
parent3d054606514ea12f7bee56e0742edd721b167b98 (diff)
downloadhomebrew-0bb0cf396c3a17997996b80c77e3423d9e3b0d37.tar.bz2
Only try and install using git pull when formula.
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-pull.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-pull.rb b/Library/Contributions/examples/brew-pull.rb
index cb5603050..bad9c4ce7 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?