Merge branch 'maint'
* maint: Update draft release notes to 1.7.1.1 notes: Initialise variable to appease gcc notes: check number of parameters to "git notes copy"
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user