From a9b9c5ade798ca8378f9e8bf3d82f6f2b01d8312 Mon Sep 17 00:00:00 2001 From: Xu Cheng Date: Thu, 30 Jul 2015 16:51:00 +0800 Subject: Tap: allow enumerate non-git taps Also add a `Tap#git?` method to indicate whether the tap is a git repository. Closes Homebrew/homebrew#42264. Signed-off-by: Xu Cheng --- Library/Homebrew/cmd/update.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/update.rb b/Library/Homebrew/cmd/update.rb index ba03d34a4..189a911db 100644 --- a/Library/Homebrew/cmd/update.rb +++ b/Library/Homebrew/cmd/update.rb @@ -27,7 +27,7 @@ module Homebrew # this procedure will be removed in the future if it seems unnecessasry rename_taps_dir_if_necessary - Tap.each do |tap| + Tap.select(&:git?).each do |tap| tap.path.cd do updater = Updater.new(tap.path) -- cgit v1.2.3