update-report: skip non git tap

This commit is contained in:
Xu Cheng 2016-01-20 19:42:55 +08:00
parent bb5cf70a02
commit 826f65cc2f

View File

@ -29,6 +29,7 @@ module Homebrew
updated_taps = [] updated_taps = []
Tap.each do |tap| Tap.each do |tap|
next unless tap.git?
tap.path.cd do tap.path.cd do
updater = Reporter.new(tap.path) updater = Reporter.new(tap.path)
updated_taps << tap.name if updater.updated? updated_taps << tap.name if updater.updated?