Fixes side-effect of e58f264a3e59a0887c7aaa1e3227cff108ac840d I'm not sure this is the right way to fix this problem, but "stgit new" should not open an editor if the "--save-template" flag was specified, as it's used as part of batch processes. Signed-off-by: Gustav Hållberg <gustav@xxxxxxxxxxxxx> --- stgit/commands/new.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/stgit/commands/new.py b/stgit/commands/new.py index 9fd51c3..158193e 100644 --- a/stgit/commands/new.py +++ b/stgit/commands/new.py @@ -67,7 +67,8 @@ def func(parser, options, args): cd = gitlib.CommitData( tree = stack.head.data.tree, parents = [stack.head], message = '', author = gitlib.Person.author(), committer = gitlib.Person.committer()) - cd = common.update_commit_data(cd, options, allow_edit = True) + cd = common.update_commit_data(cd, options, + allow_edit = not options.save_template) if options.save_template: options.save_template(cd.message) -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html