summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-11-10 09:02:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-11-10 09:02:12 (GMT)
commitd4a98e701f86bdff469d0f1ed912ba1651c23c3f (patch)
treeeb44161c938f5325405708c0483abacbbb9ee3fa /builtin
parent5c8c0a0d78b0e0ee50ba13823f0cfbee05334461 (diff)
parentd58deb9c4e151d4d8380cd14223391ce0d58f588 (diff)
downloadgit-d4a98e701f86bdff469d0f1ed912ba1651c23c3f.zip
git-d4a98e701f86bdff469d0f1ed912ba1651c23c3f.tar.gz
git-d4a98e701f86bdff469d0f1ed912ba1651c23c3f.tar.bz2
Merge branch 'dd/notes-copy-default-dst-to-head'
"git notes copy $original" ought to copy the notes attached to the original object to HEAD, but a mistaken tightening to command line parameter validation made earlier disabled that feature by mistake. * dd/notes-copy-default-dst-to-head: notes: fix minimum number of parameters to "copy" subcommand t3301: test diagnose messages for too few/many paramters
Diffstat (limited to 'builtin')
-rw-r--r--builtin/notes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/notes.c b/builtin/notes.c
index 02e97f5..95456f3 100644
--- a/builtin/notes.c
+++ b/builtin/notes.c
@@ -513,7 +513,7 @@ static int copy(int argc, const char **argv, const char *prefix)
}
}
- if (argc < 2) {
+ if (argc < 1) {
error(_("too few parameters"));
usage_with_options(git_notes_copy_usage, options);
}