merge script: --squash, --ff from unborn branch are errors
[gitweb.git] / builtin / notes.c
index f1f53a80e188327c0da21b046f0e8879caabc6af..190005f3cd44a35a6fffb20b1e4c74622b4d93f7 100644 (file)
@@ -614,6 +614,10 @@ static int copy(int argc, const char **argv, const char *prefix)
                }
        }
 
+       if (argc < 2) {
+               error("too few parameters");
+               usage_with_options(git_notes_copy_usage, options);
+       }
        if (2 < argc) {
                error("too many parameters");
                usage_with_options(git_notes_copy_usage, options);