diff options
| author | Xu Cheng | 2016-03-07 18:08:37 +0800 | 
|---|---|---|
| committer | Xu Cheng | 2016-03-07 19:43:46 +0800 | 
| commit | 1e487edd21a55c447065a1cce3f6398b119e4669 (patch) | |
| tree | 29054c001775faa7686b0f7acd0ad23da50366cd /Library/Homebrew/cmd/tap-pin.rb | |
| parent | a3023c3ce837f295bfb1e70988909433a9a70708 (diff) | |
| download | brew-1e487edd21a55c447065a1cce3f6398b119e4669.tar.bz2 | |
tap various commands: use tap name method.
Instead of hard coded `Homebrew/homebrew`
Diffstat (limited to 'Library/Homebrew/cmd/tap-pin.rb')
| -rw-r--r-- | Library/Homebrew/cmd/tap-pin.rb | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/tap-pin.rb b/Library/Homebrew/cmd/tap-pin.rb index 7625f2642..16c3a77db 100644 --- a/Library/Homebrew/cmd/tap-pin.rb +++ b/Library/Homebrew/cmd/tap-pin.rb @@ -4,9 +4,9 @@ module Homebrew    def tap_pin      ARGV.named.each do |name|        tap = Tap.fetch(name) -      raise "Homebrew/homebrew is not allowed" if tap.core_tap? +      raise "#{tap} is not allowed" if tap.core_tap?        tap.pin -      ohai "Pinned #{tap.name}" +      ohai "Pinned #{tap}"      end    end  end  | 
