summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2010-06-28 17:42:26 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-06-28 17:42:26 -0700
commit1ba5c532e1f6ede63fd46bf6b647e70baa10a364 (patch)
tree5b514b2936389e2f0433565881c8555fe189c644 /builtin
parentmsvc: Select the "fast" definition of the {get,put}_be32() macros (diff)
parentUpdate draft release notes to 1.7.1.1 (diff)
downloadtgif-1ba5c532e1f6ede63fd46bf6b647e70baa10a364.tar.xz
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"
Diffstat (limited to 'builtin')
-rw-r--r--builtin/notes.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/builtin/notes.c b/builtin/notes.c
index f1f53a80e1..190005f3cd 100644
--- a/builtin/notes.c
+++ b/builtin/notes.c
@@ -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);