diff options
author | Dirk Wallenstein <halsmit@t-online.de> | 2011-01-17 00:40:43 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2011-02-11 09:40:00 +0800 |
commit | d9ab2f6b49b035a724fbeaea4c38f19d4ecc5996 (patch) | |
tree | 38dbff362d8311746414fec76421fbfbb7d94d94 /apps | |
parent | ab21927af7fa4003a0da8986c8448cb4cb134d6c (diff) | |
download | patchwork-d9ab2f6b49b035a724fbeaea4c38f19d4ecc5996.tar patchwork-d9ab2f6b49b035a724fbeaea4c38f19d4ecc5996.tar.gz |
parser: Account for mail client line wrapping in pull requests
If a mail client wraps the line with the sha, there won't necessarily be
a space after 'commit'.
Signed-off-by: Dirk Wallenstein <halsmit@t-online.de>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/patchwork/bin/parsemail.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/patchwork/bin/parsemail.py b/apps/patchwork/bin/parsemail.py index 0a9daf5..1b73169 100755 --- a/apps/patchwork/bin/parsemail.py +++ b/apps/patchwork/bin/parsemail.py @@ -136,7 +136,7 @@ def mail_headers(mail): for (k, v) in mail.items()]) def find_pull_request(content): - git_re = re.compile('^The following changes since commit .*' + + git_re = re.compile('^The following changes since commit.*' + '^are available in the git repository at:\n' '^\s*(git://[^\n]+)$', re.DOTALL | re.MULTILINE) |