X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/e190e1a6c056b96971229940ff0bb2aef3350c0c..b2a0aaa81c83365c68a0e709b8f884ba320e79f2:/stgit/commands/imprt.py diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index c956c91..8de0eaa 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -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