Remove 'is this a git command?'
This commit is contained in:
parent
c7ec737f86
commit
a396e5e720
6
bin/brew
6
bin/brew
@ -81,16 +81,10 @@ begin
|
|||||||
exit 0
|
exit 0
|
||||||
elsif require? HOMEBREW_REPOSITORY/"Library/Homebrew/cmd"/cmd
|
elsif require? HOMEBREW_REPOSITORY/"Library/Homebrew/cmd"/cmd
|
||||||
Homebrew.send cmd.to_s.gsub('-', '_')
|
Homebrew.send cmd.to_s.gsub('-', '_')
|
||||||
else
|
|
||||||
# Check for git commands
|
|
||||||
if %w[branch checkout pull push rebase reset].include? cmd
|
|
||||||
onoe "Unknown command: #{cmd} (did you mean `git #{cmd}'?)"
|
|
||||||
exit 1
|
|
||||||
else
|
else
|
||||||
onoe "Unknown command: #{cmd}"
|
onoe "Unknown command: #{cmd}"
|
||||||
exit 1
|
exit 1
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
rescue FormulaUnspecifiedError
|
rescue FormulaUnspecifiedError
|
||||||
abort "This command requires a formula argument"
|
abort "This command requires a formula argument"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user