summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDirk Wallenstein <halsmit@t-online.de>2011-01-17 00:40:43 +0000
committerJeremy Kerr <jk@ozlabs.org>2011-02-11 09:40:00 +0800
commitd9ab2f6b49b035a724fbeaea4c38f19d4ecc5996 (patch)
tree38dbff362d8311746414fec76421fbfbb7d94d94
parentab21927af7fa4003a0da8986c8448cb4cb134d6c (diff)
downloadpatchwork-d9ab2f6b49b035a724fbeaea4c38f19d4ecc5996.tar.bz2
patchwork-d9ab2f6b49b035a724fbeaea4c38f19d4ecc5996.tar.xz
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>
-rwxr-xr-xapps/patchwork/bin/parsemail.py2
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)