summaryrefslogtreecommitdiff
path: root/tools/patman/send.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-04-07 22:51:45 +1200
committerSimon Glass <sjg@chromium.org>2025-05-27 10:07:41 +0100
commite10201aa8ccb1fb681cafab4225399f4fdb8497d (patch)
tree1bb96dd2d6c13d472813be4d840ba5ef0a7e0f57 /tools/patman/send.py
parent7dc55435b2e869e26ab28926b92a7dc6620e2108 (diff)
patman: Pass the alias dict into gitutil.email_patches()
Rather than accessing the settings module in this function, require the alias dict to be passed in. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/send.py')
-rw-r--r--tools/patman/send.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/patman/send.py b/tools/patman/send.py
index 66f3c4eb952..9481a95f2f9 100644
--- a/tools/patman/send.py
+++ b/tools/patman/send.py
@@ -10,6 +10,7 @@ import sys
from patman import checkpatch
from patman import patchstream
+from patman import settings
from u_boot_pylib import gitutil
from u_boot_pylib import terminal
@@ -93,7 +94,7 @@ def email_patches(col, series, cover_fname, patch_files, process_tags, its_a_go,
if its_a_go:
cmd = gitutil.email_patches(
series, cover_fname, patch_files, dry_run, not ignore_bad_tags,
- cc_file, in_reply_to=in_reply_to, thread=thread,
+ cc_file, settings.alias, in_reply_to=in_reply_to, thread=thread,
smtp_server=smtp_server)
else:
print(col.build(col.RED, "Not sending emails due to errors/warnings"))