diff options
| author | Xu Cheng | 2015-07-30 16:51:00 +0800 |
|---|---|---|
| committer | Xu Cheng | 2015-07-30 21:28:52 +0800 |
| commit | a9b9c5ade798ca8378f9e8bf3d82f6f2b01d8312 (patch) | |
| tree | 436a8b69df1efb5d6fc80b1c611ac6fe5dd65b79 /Library/Homebrew/cmd | |
| parent | 8c7b6291491ec0a6d50c7b0dfcc4912d12253418 (diff) | |
| download | brew-a9b9c5ade798ca8378f9e8bf3d82f6f2b01d8312.tar.bz2 | |
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 <xucheng@me.com>
Diffstat (limited to 'Library/Homebrew/cmd')
| -rw-r--r-- | Library/Homebrew/cmd/update.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
