bundle: verify arguments more strictly
commit7886cfa08054046a7a82726be4b8c109b2ba1344
authorPatrick Steinhardt <ps@pks.im>
Fri, 8 May 2015 08:02:00 +0000 (8 10:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 8 May 2015 17:52:11 +0000 (8 10:52 -0700)
tree4a85ac80e921487773c25cf90a89750bce5100e4
parent282616c72d1d08a77ca4fe1186cb708c38408d87
bundle: verify arguments more strictly

The `verify` and `create` subcommands of the bundle builtin do
not properly verify the command line arguments that have been
passed in. While the `verify` subcommand accepts an arbitrary
amount of ignored arguments the `create` subcommand does not
complain about being passed too few arguments, resulting in a
bogus call to `git rev-list`. Fix these errors by verifying that
the correct amount of arguments has been passed in.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Acked-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/bundle.c