Merge branch 'ah/unpack-trees-advice-messages' into maint
[gitweb.git] / builtin / reset.c
index 092c3a5399c731e83058233f8e3e459be493e140..e8c57670304554ec0c91cca819e78b04af59b9c6 100644 (file)
@@ -103,7 +103,7 @@ static void print_new_head_line(struct commit *commit)
        if (body) {
                const char *eol;
                size_t len;
-               body += 2;
+               body = skip_blank_lines(body + 2);
                eol = strchr(body, '\n');
                len = eol ? eol - body : strlen(body);
                printf(" %.*s\n", (int) len, body);