Ignore the case on the PATCH name when importing
authorCatalin Marinas <catalin.marinas@gmail.com>
Sat, 17 Sep 2005 07:53:58 +0000 (08:53 +0100)
committerCatalin Marinas <catalin.marinas@gmail.com>
Sat, 17 Sep 2005 07:53:58 +0000 (08:53 +0100)
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
stgit/commands/imprt.py

index 6baf426..c956c91 100644 (file)
@@ -100,7 +100,8 @@ def __parse_mail(filename = None):
 
     # remove the '[*PATCH*]' expression in the subject
     if descr:
-        descr = re.findall('^(\[[^\s]*PATCH.*?\])?\s*(.*)$', descr)[0][1]
+        descr = re.findall('^(\[[^\s]*[Pp][Aa][Tt][Cc][Hh].*?\])?\s*(.*)$',
+                           descr)[0][1]
         descr += '\n\n'
     else:
         raise CmdException, 'Subject: line not found'