Detect description in quilt patches
[stgit] / stgit / commands / imprt.py
index c956c91..8de0eaa 100644 (file)
@@ -108,7 +108,8 @@ def __parse_mail(filename = None):
 
     # the rest of the patch description
     for line in f:
-        if re.match('---\s*$', line) or re.match('diff -', line):
+        if re.match('---\s*$', line) or re.match('diff -', line) or \
+                re.match('^Index: ', line):
             break
         else:
             descr += line