aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/untap.rb
diff options
context:
space:
mode:
authorXu Cheng2015-12-07 14:11:04 +0800
committerXu Cheng2015-12-09 16:56:59 +0800
commit2c25303949a9fa091868cbdd42fd4ff4877869fc (patch)
treeef4127caea10735397ae530022213c526d77150b /Library/Homebrew/cmd/untap.rb
parent5b435db3bfc48d8bb41a5773cf6d7ae8970a55e4 (diff)
downloadbrew-2c25303949a9fa091868cbdd42fd4ff4877869fc.tar.bz2
remove unnecessary tap_args
It's now handled by Tap.fetch
Diffstat (limited to 'Library/Homebrew/cmd/untap.rb')
-rw-r--r--Library/Homebrew/cmd/untap.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/untap.rb b/Library/Homebrew/cmd/untap.rb
index 2d08ae8c7..8f14258f3 100644
--- a/Library/Homebrew/cmd/untap.rb
+++ b/Library/Homebrew/cmd/untap.rb
@@ -1,11 +1,12 @@
-require "cmd/tap" # for tap_args
+require "tap"
module Homebrew
def untap
raise "Usage is `brew untap <tap-name>`" if ARGV.empty?
ARGV.named.each do |tapname|
- tap = Tap.fetch(*tap_args(tapname))
+ tap = Tap.fetch(tapname)
+ raise "Homebrew/homebrew is not allowed" if tap.core_formula_repository?
tap.uninstall
end
end