Remove 'is this a git command?'

This commit is contained in:
Adam Vandenberg 2012-03-07 07:00:27 -08:00
parent c7ec737f86
commit a396e5e720

View File

@ -82,14 +82,8 @@ begin
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 else
# Check for git commands onoe "Unknown command: #{cmd}"
if %w[branch checkout pull push rebase reset].include? cmd exit 1
onoe "Unknown command: #{cmd} (did you mean `git #{cmd}'?)"
exit 1
else
onoe "Unknown command: #{cmd}"
exit 1
end
end end
rescue FormulaUnspecifiedError rescue FormulaUnspecifiedError