update: abort if formula names are given
Closes Homebrew/homebrew#11154.
This commit is contained in:
parent
82ecc01ac0
commit
bae3d70834
@ -6,6 +6,7 @@ module Homebrew extend self
|
||||
DEPRECATED_TAPS = ['adamv-alt']
|
||||
|
||||
def update
|
||||
abort "This command updates brew itself, and does not take formula names." unless ARGV.named.empty?
|
||||
abort "Please `brew install git' first." unless which "git"
|
||||
|
||||
# ensure GIT_CONFIG is unset as we need to operate on .git/config
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user