summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: af6fbf9)
raw | patch | inline | side by side (parent: af6fbf9)
author | Junio C Hamano <gitster@pobox.com> | |
Wed, 2 Dec 2009 17:59:35 +0000 (09:59 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 2 Dec 2009 18:01:59 +0000 (10:01 -0800) |
This was misinterpreted as an ancient style "git merge <message> HEAD
<commit> <commit>..." that merges one (or more) <commit> into the current
branch and record the resulting commit with the given message. Then a
later sanity check found that there is no <commit> specified and gave
a usage message.
Tested-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
<commit> <commit>..." that merges one (or more) <commit> into the current
branch and record the resulting commit with the given message. Then a
later sanity check found that there is no <commit> specified and gave
a usage message.
Tested-by: Nanako Shiraishi <nanako3@lavabit.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-merge.c | patch | blob | history |
diff --git a/builtin-merge.c b/builtin-merge.c
index e95c5dc71746fb6f4e87913669701a2f65070602..e5cf795307a62ea37c2ab4fe39f801cb5a680f03 100644 (file)
--- a/builtin-merge.c
+++ b/builtin-merge.c
static struct commit *is_old_style_invocation(int argc, const char **argv)
{
struct commit *second_token = NULL;
- if (argc > 1) {
+ if (argc > 2) {
unsigned char second_sha1[20];
if (get_sha1(argv[1], second_sha1))