From: Catalin Marinas Date: Tue, 23 Aug 2005 16:19:22 +0000 (+0100) Subject: Fix the import --edit function X-Git-Tag: v0.7~49 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/9d15ccd85e36ef5cd554aaf98f1c37ef0433697f Fix the import --edit function 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 --- 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