Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
commit.c: make find_commit_subject() more robust
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index 0eee4107647c1fd0246b3c8d2e45a103ded844e5..116774c2105a8165295287e22b5579eb79e68be4 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-398,7
+398,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