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>
if options.authdate:
author_date = options.authdate
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,
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')
if not diff:
out.warn('No diff found, creating empty patch')
crt_series.refresh_patch(edit = options.edit,
show_patch = options.showdiff,
author_date = author_date,
crt_series.refresh_patch(edit = options.edit,
show_patch = options.showdiff,
author_date = author_date,
- sign_str = options.sign_str,
backup = False)
out.done()
backup = False)
out.done()