If the patch doesn't have any description, the editor is invoked twice,
once by new_patch and the 2nd time by refresh_patch. This patch fixes
this issue.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
message, author_name, author_email, author_date = \
__parse_patch(filename)
message, author_name, author_email, author_date = \
__parse_patch(filename)
+ # new_patch() will invoke the editor in this case
+ if not message:
+ edit = False
+
# override the automatically parsed settings
if options.authname:
author_name = options.authname
# override the automatically parsed settings
if options.authname:
author_name = options.authname