notes: check number of parameters to "git notes copy"
authorJeff King <peff@peff.net>
Mon, 28 Jun 2010 08:59:07 +0000 (04:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jun 2010 16:15:15 +0000 (09:15 -0700)
commitbbb1b8a35a06203020f7ab6d1ad58bcb4afe8e93
treec7e4500bf95872f4ffa394fef1af3ebac236a72a
parent9eafa1201b2dcc703258ca7cd53de8ac4de74565
notes: check number of parameters to "git notes copy"

Otherwise we may segfault with too few parameters.

Signed-off-by: Jeff King <peff@peff.net>
Tested-by: Bert Wesarg <Bert.Wesarg@googlemail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/notes.c
t/t3301-notes.sh