diff options
| author | Xu Cheng | 2015-12-07 14:11:04 +0800 | 
|---|---|---|
| committer | Xu Cheng | 2015-12-09 16:56:59 +0800 | 
| commit | 2c25303949a9fa091868cbdd42fd4ff4877869fc (patch) | |
| tree | ef4127caea10735397ae530022213c526d77150b /Library/Homebrew/cmd/tap-pin.rb | |
| parent | 5b435db3bfc48d8bb41a5773cf6d7ae8970a55e4 (diff) | |
| download | brew-2c25303949a9fa091868cbdd42fd4ff4877869fc.tar.bz2 | |
remove unnecessary tap_args
It's now handled by Tap.fetch
Diffstat (limited to 'Library/Homebrew/cmd/tap-pin.rb')
| -rw-r--r-- | Library/Homebrew/cmd/tap-pin.rb | 5 | 
1 files changed, 3 insertions, 2 deletions
| diff --git a/Library/Homebrew/cmd/tap-pin.rb b/Library/Homebrew/cmd/tap-pin.rb index 80f1f762a..e906c700d 100644 --- a/Library/Homebrew/cmd/tap-pin.rb +++ b/Library/Homebrew/cmd/tap-pin.rb @@ -1,9 +1,10 @@ -require "cmd/tap" +require "tap"  module Homebrew    def tap_pin      ARGV.named.each do |name| -      tap = Tap.fetch(*tap_args(name)) +      tap = Tap.fetch(name) +      raise "Homebrew/homebrew is not allowed" if tap.core_formula_repository?        tap.pin        ohai "Pinned #{tap.name}"      end | 
