t3301-notes.sh: check that default operation mode doesn't take arguments
commit9e4658d5c6917b926a299a55ff8b18ca256e301c
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 19 Aug 2022 16:03:53 +0000 (19 18:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 19 Aug 2022 18:13:13 +0000 (19 11:13 -0700)
tree91925633e046dde8b92030d1ddc77f48cf96e5df
parent66fa6e8ed8bcfff6708d7bceed4c2b9e4050ebe7
t3301-notes.sh: check that default operation mode doesn't take arguments

'git notes' without a subcommand defaults to listing all notes and
doesn't accept any arguments.

We are about to teach parse-options to handle subcommands, and update
'git notes' to make use of that new feature.  So let's add a test to
make sure that the upcoming changes don't inadvertenly change the
behavior in this corner case.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3301-notes.sh