diff options
author | Catalin Marinas <catalin.marinas@gmail.com> | 2009-09-16 14:20:21 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@gmail.com> | 2009-09-16 14:20:21 +0100 |
commit | e929f0ac4e1a306468d9950ffb630c4d241166ea (patch) | |
tree | 9d38cf8c474e12beb0dee79f88870c0e17db9a53 | |
parent | ca5c965190e993a10289758e7cbdc5b9c9f9c31e (diff) | |
download | stgit-e929f0ac4e1a306468d9950ffb630c4d241166ea.tar.gz |
Autosign imported patches
If stgit.autosign configuration is set, allow the automatic signing of
the imported patches, similar to the 'new' command.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
-rw-r--r-- | stgit/commands/imprt.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index de77635..a2d0e50 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -141,10 +141,14 @@ def __create_patch(filename, message, author_name, author_email, if options.authdate: author_date = options.authdate + sign_str = options.sign_str + if not options.sign_str: + sign_str = config.get('stgit.autosign') + crt_series.new_patch(patch, message = message, can_edit = False, author_name = author_name, author_email = author_email, - author_date = author_date) + author_date = author_date, sign_str = sign_str) if not diff: out.warn('No diff found, creating empty patch') @@ -164,7 +168,6 @@ def __create_patch(filename, message, author_name, author_email, crt_series.refresh_patch(edit = options.edit, show_patch = options.showdiff, author_date = author_date, - sign_str = options.sign_str, backup = False) out.done() |