Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Sync with 2.9.2
[gitweb.git]
/
builtin
/
commit.c
diff --git
a/builtin/commit.c
b/builtin/commit.c
index 3f189428b1214a363b4ba2280d45f76540341f2d..1f6dbcd0d06a54eadc0d99a676adf3a9203aca61 100644
(file)
--- a/
builtin/commit.c
+++ b/
builtin/commit.c
@@
-715,7
+715,7
@@
static int prepare_to_commit(const char *index_file, const char *prefix,
char *buffer;
buffer = strstr(use_message_buffer, "\n\n");
if (buffer)
- strbuf_addstr(&sb,
buffer + 2
);
+ strbuf_addstr(&sb,
skip_blank_lines(buffer + 2)
);
hook_arg1 = "commit";
hook_arg2 = use_message;
} else if (fixup_message) {