]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/bin/parsemail.py
parser: allow other protocol types in pull-request handling
[patchwork] / apps / patchwork / bin / parsemail.py
index c36dae45712a642bead086401e737a433dab304e..52c85fe362bbe27fea1542061f899060b85c9623 100755 (executable)
@@ -140,7 +140,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*(git://[^\n]+)$',
+                        '^\s*([\S]+://[^\n]+)$',
                            re.DOTALL | re.MULTILINE)
     match = git_re.search(content)
     if match: