[PATCH v3 1/2] parsemail.py: Avoid skipping patches when parsing
Jose Lamego
jose.a.lamego at linux.intel.com
Fri Sep 25 03:09:57 AEST 2015
Avoids some email patch notifications to be wrongly
skipped when the pull URL includes the branch.
An example of an email patch notification that would
be skipped can be found in [1].
[1] http://patchwork.openembedded.org/patch/96385/
Signed-off-by: Jose Lamego <jose.a.lamego at linux.intel.com>
---
patchwork/bin/parsemail.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/patchwork/bin/parsemail.py b/patchwork/bin/parsemail.py
index e66b557..5378dc6 100755
--- a/patchwork/bin/parsemail.py
+++ b/patchwork/bin/parsemail.py
@@ -137,7 +137,7 @@ def mail_headers(mail):
def find_pull_request(content):
git_re = re.compile('^The following changes since commit.*' +
'^are available in the git repository at:\n'
- '^\s*([\S]+://[^\n]+)$',
+ '^\s*([\S]+://[^\n]+)',
re.DOTALL | re.MULTILINE)
match = git_re.search(content)
if match:
--
1.9.1
More information about the Patchwork
mailing list