Add extra message for unknown commands that are git commands.
This commit is contained in:
parent
be412369ae
commit
59a686e3c2
3
bin/brew
3
bin/brew
@ -227,6 +227,9 @@ begin
|
|||||||
Dir.chdir HOMEBREW_REPOSITORY
|
Dir.chdir HOMEBREW_REPOSITORY
|
||||||
exec "git", "log", ARGV.formulae.first.path, *ARGV.options
|
exec "git", "log", ARGV.formulae.first.path, *ARGV.options
|
||||||
|
|
||||||
|
when 'pull', 'push', 'checkout', 'branch'
|
||||||
|
onoe "Unknown command: #{arg} (did you mean 'git #{arg}'?)"
|
||||||
|
|
||||||
else
|
else
|
||||||
onoe "Unknown command: #{arg}"
|
onoe "Unknown command: #{arg}"
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user