]> git.ozlabs.org Git - patchwork/commitdiff
parser: Account for mail client line wrapping in pull requests
authorDirk Wallenstein <halsmit@t-online.de>
Mon, 17 Jan 2011 00:40:43 +0000 (00:40 +0000)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 11 Feb 2011 01:40:00 +0000 (09:40 +0800)
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>
apps/patchwork/bin/parsemail.py

index 0a9daf541d6b8f5937639c6292dc70b28d199d00..1b7316935583e688957807250aab6d0826046fea 100755 (executable)
@@ -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)