Merge branch 'js/find-commit-subject-ignore-leading-blanks'
[gitweb.git] / commit.c
index 3f4f371e5eec41fa67345c0b9d373b541e52172a..24d4715f24f06c4747eb728ffbdab2aadf715e6a 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -414,7 +414,7 @@ int find_commit_subject(const char *commit_buffer, const char **subject)
        while (*p && (*p != '\n' || p[1] != '\n'))
                p++;
        if (*p) {
-               p += 2;
+               p = skip_blank_lines(p + 2);
                for (eol = p; *eol && *eol != '\n'; eol++)
                        ; /* do nothing */
        } else