From 9d15ccd85e36ef5cd554aaf98f1c37ef0433697f Mon Sep 17 00:00:00 2001 Message-Id: <9d15ccd85e36ef5cd554aaf98f1c37ef0433697f.1746529742.git.mdw@distorted.org.uk> From: Mark Wooding Date: Tue, 23 Aug 2005 17:19:22 +0100 Subject: [PATCH] Fix the import --edit function Organization: Straylight/Edgeware From: Catalin Marinas 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 --- stgit/commands/imprt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 879599b..9dccaf9 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -172,6 +172,10 @@ def func(parser, options, args): 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 -- [mdw]