chiark / gitweb /
Refactor stgit.commands.edit
[stgit] / stgit / commands / imprt.py
index 103ebb03f2d5656588ffde742c550a656166f176..9f2df05a7c125738283731205a8b1d4926766323 100644 (file)
@@ -212,7 +212,7 @@ def __import_file(filename, options, patch = None):
                  parse_mail(msg)
     else:
         message, author_name, author_email, author_date, diff = \
-                 parse_patch(f.read())
+                 parse_patch(f.read(), contains_diff = True)
 
     if filename:
         f.close()