diff options
| author | Junio C Hamano <gitster@pobox.com> | 2008-07-14 23:47:23 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2008-07-14 23:47:23 -0700 |
| commit | abce32b5ba5cf91c85b032d2dbb2702679a5608e (patch) | |
| tree | d950fe45585e2db860707e85a99ad3f03a9378c0 /builtin-mailinfo.c | |
| parent | Merge branch 'om/rerere-careful' (diff) | |
| parent | git-mailinfo: Fix getting the subject from the in-body [PATCH] line (diff) | |
| download | git-abce32b5ba5cf91c85b032d2dbb2702679a5608e.tar.gz git-abce32b5ba5cf91c85b032d2dbb2702679a5608e.zip | |
Merge branch 'ls/maint-mailinfo-patch-label'
* ls/maint-mailinfo-patch-label:
git-mailinfo: Fix getting the subject from the in-body [PATCH] line
Diffstat (limited to 'builtin-mailinfo.c')
| -rw-r--r-- | builtin-mailinfo.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/builtin-mailinfo.c b/builtin-mailinfo.c index 962aa34c8e..13f0502b9e 100644 --- a/builtin-mailinfo.c +++ b/builtin-mailinfo.c @@ -334,7 +334,9 @@ static int check_header(char *line, unsigned linesize, char **hdr_data, int over return 1; if (!memcmp("[PATCH]", line, 7) && isspace(line[7])) { for (i = 0; header[i]; i++) { - if (!memcmp("Subject: ", header[i], 9)) { + if (!memcmp("Subject", header[i], 7)) { + if (!hdr_data[i]) + hdr_data[i] = xmalloc(linesize + 20); if (! handle_header(line, hdr_data[i], 0)) { return 1; } |
